<@ULVA73B9P> I’m using Prefect server 2.20. I have...
# ask-marvin
h
@Marvin I’m using Prefect server 2.20. I have a slack webhook notification set to send a failure message when the status of the flow run is failed. I have a flow that have 5 retries and each time it retries I get a notification in slack. I have the same configuration in Prefect server 2.14.13 and I get only one notification in such cases. Is this a matter of version?
m
Error: Connection error.
Error: status_code: 529, model_name: claude-3-5-sonnet-latest, body: {'type': 'error', 'error': {'type': 'overloaded_error', 'message': 'Overloaded'}}
h
@Marvin try again
m
thought for 4.0 seconds
I notice this is your first message in our conversation, so there isn't anything to "try again". Could you please: 1. Let me know what specific question or topic you'd like help with, or 2. Share what you were trying to do previously that didn't work I'm here to help with any Prefect-related questions you have - whether that's about flows, deployments, workers, or any other aspect of the platform. Just let me know what you'd like to explore!
h
@Marvin I’m using Prefect server 2.20. I have a slack webhook notification set to send a failure message when the status of the flow run is failed. I have a flow that have 5 retries and each time it retries I get a notification in slack. I have the same configuration in Prefect server 2.14.13 and I get only one notification in such cases. Is this a matter of version?
m
thought for 52.1 seconds
Based on the research and issue search, here's what I can tell you: 1. There isn't any documented intentional change in notification behavior between Prefect 2.14 and 2.20 regarding retry notifications. 2. The behavior you're experiencing in 2.20 (getting a notification for each retry attempt) is likely not intended behavior, as it differs from the more intuitive single-notification approach you're seeing in 2.14. Here are a few suggestions: 1. You could try modifying your notification block settings to potentially filter out intermediate retry states. The notification block might be triggering on any state transition to "Failed", even if it's a temporary failure before a retry. 2. As a workaround, you could modify your notification logic to only trigger when: - The flow run has reached its maximum number of retries - Or when the final state is "Failed" 3. It would be helpful to open a GitHub issue about this behavior change, as it seems like it might be an unintended regression between versions. Would you like me to help you: 1. Look into specific notification block configurations that might help mitigate this? 2. Draft a GitHub issue to report this behavior change? 3. Explore alternative notification strategies that would only trigger once regardless of retries? Also, could you share your current notification block configuration? This would help us identify if there are any settings we can adjust to get back to the single-notification behavior you prefer.
h
@Marvin I’m using the notification section. Not a block
m
thought for 30.3 seconds
Based on the research, I can provide some important context about the UI notifications behavior: 1. The UI notifications feature is indeed handled differently from notification blocks, and it appears the behavior you're seeing in 2.20 (multiple notifications for retries) might be related to how state transitions are being handled in newer versions. 2. In the UI notifications settings, you can configure notifications based on state transitions. When you set it up for "Failed" state, it's responding to each time a flow run enters that state - which includes both temporary failures during retries and the final failure state. To address this, you have a few options: 1. Short-term workaround: You could modify your flow to use a notification block instead of UI notifications, which would give you more control over when notifications are sent. 2. Report the issue: Since this appears to be a behavior change between versions that affects user experience, it would be valuable to report this as an issue on GitHub. The fact that 2.14.13 handled this more elegantly (single notification) suggests this might be unintended behavior in 2.20. Would you like me to: 1. Help you set up a notification block as an alternative solution? 2. Help you draft a GitHub issue to report this behavior change? 3. Look into any other potential workarounds? Also, it would be helpful to know if you're using any specific criteria in your notification settings (like specific tags or flow names) to better understand your setup.