When fetching a workflow execution via API we're getting the following error:
2019-09-25 10:41:45.927 22657 ERROR wsme.api [req-67531f0e-abc2-4fee-9141-46fc40a18b56 - - - - -] Server-side error: "Parent instance <WorkflowExecution at 0x7fcbd0a67940> is not bound to a Session; lazy load operation of attribute 'root_execution' cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3)". Detail:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/wsmeext/pecan.py", line 85, in callfunction
result = f(self, *args, **kwargs)
File "/opt/mistral/mistral/api/controllers/v2/execution.py", line 127, in get
wf_ex)
File "/opt/mistral/mistral/api/controllers/v2/execution.py", line 92, in _get_published_global_from_tasks
published_global_vars = task.get_published_global(task_ex, wf_ex)
File "/opt/mistral/mistral/api/controllers/v2/task.py", line 83, in get_published_global
get_workflow_environment_dict(wf_ex),
File "/opt/mistral/mistral/workflow/data_flow.py", line 334, in get_workflow_environment_dict
return get_workflow_environment_dict(wf_ex.root_execution)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/orm/attributes.py", line 282, in __get__
return self.impl.get(instance_state(instance), dict_)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/orm/attributes.py", line 710, in get
value = self.callable_(state, passive)
File "/usr/local/lib/python3.6/dist-packages/sqlalchemy/orm/strategies.py", line 688, in _load_for_state
% (orm_util.state_str(state), self.key)
sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <WorkflowExecution at 0x7fcbd0a67940> is not bound to a Session; lazy load operation of attribute 'root_execution' cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3)
: sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <WorkflowExecution at 0x7fcbd0a67940> is not bound to a Session; lazy load operation of attribute 'root_execution' cannot proceed (Background on this error at: http://sqlalche.me/e/bhk3)
Fix proposed to branch: master /review. opendev. org/685899
Review: https:/