execution-update command doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
High
|
Nikolay Makhotkin | ||
Liberty |
Fix Released
|
High
|
Nikolay Makhotkin |
Bug Description
Steps to reproduce:
1. Create following workflow:
---
version: "2.0"
wf_main:
tasks:
invoke_wf:
with-items:
- i in [1,2,3,4,5,6,7,8,9]
workflow: wf_work var="<% $.i %>"
publish:
res: <% $.invoke_wf %>
wf_work:
input:
- var
output:
var: <% $.echo %>
tasks:
echo:
action: std.echo output=<% $.var %>
2. Execute "mistral execution-create wf_main"
3. Execute "mistral execution-update <exec_id> ERROR"
Observed result:
'module' object has no attribute 'DBError'
2015-04-28 13:09:03.939 2138 ERROR oslo_messaging.
NOTE:
Another scenario:
SUCCESS - > RUNNING
'NoneType' object has no attribute 'to_dict'
Traceback (most recent call last):
File "/usr/local/
result = f(self, *args, **kwargs)
File "/home/
wf_ex if isinstance(wf_ex, dict) else wf_ex.to_dict()
AttributeError: 'NoneType' object has no attribute 'to_dict'
description: | updated |
Changed in mistral: | |
importance: | Undecided → Low |
importance: | Low → High |
Changed in mistral: | |
milestone: | 1.0.0 → none |
However, resume command works fine:
mistral execution-update <id> RUNNING
it successfully resumes workflow execution.