You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only thing in log I can see in the action.log 2020-08-07 15:57:41,078 140266355055664 WARNING workflow [-] Determining if exception <class 'st2common.exceptions.workflow.WorkflowExecutionRerunException'> should be retried.
Adding extra debug found where exception is raised:
Traceback (most recent call last):
File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/services/workflows.py", line 521, in request_rerun
conductor.request_workflow_rerun(task_requests=task_requests)
File "/opt/stackstorm/st2/lib/python2.7/site-packages/orquesta/conducting.py", line 1266, in request_workflow_rerun
self._request_task_rerun(task['id'], task['route'], reset_items=reset_items)
File "/opt/stackstorm/st2/lib/python2.7/site-packages/orquesta/conducting.py", line 1181, in _request_task_rerun
for item in staged_task.get('items', []):
AttributeError: 'NoneType' object has no attribute 'get'
amanda11
changed the title
Cannot re-run orquesta workflow with --task as a with items task
Cannot re-run orquesta workflow with --task on a with items task that has succeeded
Aug 7, 2020
Updated description, as it appears it is only if the with-items task all completed, then we get the error.
Re-ran when all the task1 had all failed, and then the re-run --task task1 re-ran all the tasks.
SUMMARY
If I have an orquesta workflow with a with items task, then I cannot use execution re-run and name the with-items task in the --task field if all of those tasks have passed. If I use a task that isn't a with items task, then the re-run works fine.
The documentation for orquesta refers to re-runs with with-items, and there is a unit-test in orquesta repo for it - https://github.com/StackStorm/orquesta/blob/master/orquesta/tests/unit/conducting/test_workflow_conductor_with_items_pause_and_resume.py.
However if I attempt to re-run using the st2 execution re-run command then I get a failure.
STACKSTORM VERSION
st2 3.3dev (397e2f7), on Python 2.7.5
OS, environment, install method
CentOS7 standalone. One line install of 3.3.0, and upgrade to 3.3dev
Steps to reproduce the problem
In the UI run that workflow
re-run the execution using --task task2 -> result re-run is fine
re-run the execution using --task task1 -> get error indicating '''NoneType'' object has no attribute ''get'''
Expected Results
To be able to re-run the with-items task.
Actual Results
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: