Additional workflow trace logging in abstract_engine.py

Change-Id: Ibb0384d3d5c1d9b3e653cf4ce30f641fbc481576
This commit is contained in:
Renat Akhmerov 2014-04-25 18:53:21 +07:00
parent 345590ec15
commit c4130e6736

View File

@ -118,6 +118,11 @@ class AbstractEngine(object):
new_exec_state = cls._determine_execution_state(execution, tasks)
if execution['state'] != new_exec_state:
wf_trace_msg = \
"Execution '%s', [%s -> %s]" % \
(execution_id, execution['state'], new_exec_state)
WORKFLOW_TRACE.info(wf_trace_msg)
execution = \
db_api.execution_update(workbook_name, execution_id, {
"state": new_exec_state