KG
03/13/2025, 5:23 PMFlow run {{ flow.name }}/{{ flow_run.name }} entered state `{{ flow_run.state.name }}` at {{ flow_run.state.timestamp }}.
Flow ID: {{ flow_run.flow_id }}
Flow run ID: {{ flow_run.id }}
Flow run URL: {{ flow_run|ui_url }}
State message: {{ flow_run.state.message }}
Marvin
03/13/2025, 5:23 PMjinja2
Flow run {{ flow.name }}/{{ flow_run.name }} entered state `{{ flow_run.state.name }}` at {{ flow_run.state.timestamp }}.
Flow ID: {{ flow_run.flow_id }}
Flow run ID: {{ flow_run.id }}
Flow run URL: {{ flow_run.ui_url }}
State message: {{ flow_run.state.message }}
The key change here is using {{ flow_run.ui_url }}
instead of {{ flow_run|ui_url }}
for the flow run URL. Ensure that your Jinja2 template outputs valid JSON as needed for Slack notifications. You can refer to the Prefect documentation for webhook triggers and state management for more details.
If there are any specific errors or issues, feel free to share them for further assistance.Nate
03/13/2025, 5:25 PMKG
03/13/2025, 5:53 PMPrefect Webhook APP 11:34 AM
Prefect flow run failed
Flow run load-orientation-quiz-survey-responses/invaluable-sloth entered state Failed at 2025-03-13 16:31:07.269203+00:00.
Flow ID: f31b7fc3-d64e-498a-b3b3-e51d3a16d8ee
Flow run ID: f5a5598c-00a5-4c96-bc4b-c2e474d39edd
Flow run URL: <redacted>
State message: Flow run encountered an exception: TypeError: not all arguments converted during string formatting
Prefect Notifications | Today at 11:34 AM
Now:
Prefect flow run failed
Flow run / entered state `` at .
Flow ID:
Flow run ID:
Flow run URL: None
State message:
Prefect Notifications | Today at 12:06 PM
No prob - its an easy fix just wanted to see if Marvin had big changes since I last used 🙂Nate
03/13/2025, 5:56 PMKG
03/24/2025, 3:17 PM