(wf_ex_db, message, severity="info", log=True, stream=True)
| 64 | |
| 65 | |
| 66 | def 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 | |
| 84 | def is_action_execution_under_workflow_context(ac_ex_db): |
no outgoing calls
no test coverage detected