Skip to content
Snippets Groups Projects

Refresh the execution during resume_execution to avoid using a detached SqlAlchemy instance

Merged Daniel Lyons requested to merge small-bug-fix into main
@@ -87,6 +87,8 @@ class ExecutionManager(ExecutionManagerIF):
:param execution: the execution whose time has come
"""
# Mark this execution as no longer queued
# load the execution afresh
execution = self.capability_info.lookup_execution(execution.id)
execution.queue_state = QueueState.Running.name
self.capability_info.save_execution(execution)
subject = execution.__json__()
Loading