Iryna
04/03/2024, 1:52 AMSorry, something went wrong updating your automation
How can I get information about flows state run and pass this info as parameters to another deployment and trigger it? Maybe there is another more stable way of doing this?
How it looks on the Automation UI and what parameters I am getting in the triggered flow from automation are below.
Many thanksWill Raphaelson
04/03/2024, 2:44 PMIryna
04/03/2024, 10:41 PMSorry, something went wrong updating your automation
when I save the automation. if I provide a str without {{ }}
it allows me to save but it doesn't convert to the vars I need obviously. Also, I couldn't find documentation about these changes. Thanks
The JSON input I use:
{
"state": "{{flow_run.state.name}}",
"run_by": "{{flow_run.created_by.display_value}}",
"message": "{{flow_run.state.message}}",
"flow_name": "{{ flow.name }}/{{ flow_run.name }}",
"warehouse": "acc-maintenance",
"start_time": "{{ flow_run.state.timestamp }}",
"flow_run_id": "{{ flow_run.id}}",
"prefect_url": "<https://app.prefect.cloud/account/{{account.id}}/workspace/{{> workspace.id}}/flow-runs/flow-run/{{flow_run.id}}",
"trigger_type": "{{ flow_run.created_by.type }} ",
"deployment_id": "{{flow_run.deployment_id}}"
}
Will Raphaelson
04/03/2024, 10:49 PMIryna
04/03/2024, 11:52 PM