<@ULVA73B9P> My automation sending an email for pa...
# ask-marvin
b
@Marvin My automation sending an email for paused flow is not triggered. What happened?
m
It seems like there could be a few reasons why your email automation for a paused flow might not be triggered. Here are some possibilities: 1. Configuration Issue: The automation must be correctly configured to trigger an email when the flow enters a paused state. Double-check your automation settings, ensuring that the trigger condition for sending an email is properly set to the paused state. 2. Result Persistence: If your flow does not have result persistence enabled, it might cause issues when it is resumed. This could lead to failing rather than triggering the intended email notification. More details can be found in this GitHub issue. 3. Notification Configuration: Email notifications in Prefect Cloud use the Automations interface. Ensure that you've configured which run states (such as paused) should trigger a notification. For more details on configuring notifications, visit Prefect's Notifications Guide. 4. Flow Completion: Sometimes, notifications are set to trigger upon flow completion rather than other states. Double-check that the automation is not mistakenly set for flow completion instead of pausing. Recommendation: Verify your automations settings and result persistence configuration to ensure everything is set up correctly. If the problem persists, refer to the automations guide and configuration details for additional assistance.
b
@Marvin Everything is configured correctly. What else could it be?
m
If your configuration appears correct and you're still facing issues, it might be a bug or an unexpected behavior in Prefect. There is a known issue related to paused flows and result persistence that might be relevant: - Persisted Results Issue: When results are not persisted, resuming a paused flow can fail. This behavior is discussed in this GitHub issue, highlighting that missing result data can cause errors upon resumption. ### Next Steps: - Ensure that your flow’s results are being persisted correctly to avoid state data issues. - Look into the GitHub issue to see if there’s an ongoing discussion or a workaround provided by the community or the maintainers. For a bug or unexpected behavior, you might want to open a new issue on the Prefect GitHub page here for further assistance.