conductor-python icon indicating copy to clipboard operation
conductor-python copied to clipboard

Conductor API for updateWorkflowDef doesn't support updating onStateChange values

Open matteius opened this issue 2 years ago • 1 comments

Conductor API for updateWorkflowDef doesn't support updating onStateChange values.

        task.on_state_change = {
            "onScheduled,onStart,onSuccess,onFailed,onCancelled": [
                {
                    "type": "task_status_changed",
                    "payload": {"task": "${%s}" % task.task_reference_name, "workflow": "${workflow}"},
                }
            ]
        }

but updated workflow is missing this data because client doesn't have getter/setter for this newer attribute.

matteius avatar Jan 06 '24 02:01 matteius

Hi @matteius this has been addressed in the latest version. See https://github.com/conductor-sdk/conductor-python/blob/main/examples/task_status_change_audit.py for example.

v1r3n avatar Jan 17 '24 06:01 v1r3n