MCPcopy Index your code
hub / github.com/StackStorm/st2 / update_progress

Function update_progress

st2common/st2common/services/workflows.py:66–81  ·  view source on GitHub ↗
(wf_ex_db, message, severity="info", log=True, stream=True)

Source from the content-addressed store, hash-verified

64
65
66def update_progress(wf_ex_db, message, severity="info", log=True, stream=True):
67 if not wf_ex_db:
68 return
69
70 if log and severity in LOG_FUNCTIONS:
71 LOG_FUNCTIONS[severity](
72 "[%s] %s", wf_ex_db.context["st2"]["action_execution_id"], message
73 )
74
75 if stream:
76 ac_svc.store_execution_output_data_ex(
77 wf_ex_db.context["st2"]["action_execution_id"],
78 wf_ex_db.context["st2"]["action"],
79 wf_ex_db.context["st2"]["runner"],
80 "%s\n" % message,
81 )
82
83
84def is_action_execution_under_workflow_context(ac_ex_db):

Callers 13

requestFunction · 0.85
request_task_executionFunction · 0.85
request_action_executionFunction · 0.85
update_task_stateFunction · 0.85
request_next_tasksFunction · 0.85
update_task_executionFunction · 0.85
resume_task_executionFunction · 0.85
update_execution_recordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected