Adam
07/08/2025, 6:54 PMMarvin
07/08/2025, 6:54 PMMarvin
07/08/2025, 6:55 PMpython
from prefect.settings import Setting
PREFECT_RUNNER_HEARTBEAT_FREQUENCY = Setting(
name="PREFECT_RUNNER_HEARTBEAT_FREQUENCY",
value=30, # seconds
)
2. Investigate the root cause of the crashes:
- Check your flow logs for any errors just before the crashes
- Monitor system resources (especially important since you're using a db.t4g.small instance)
- Look for any infrastructure-related issues that might be causing the flow to become unresponsive
3. Disable automatic restarts if they're not desired (though this isn't generally recommended as it's a helpful reliability feature)
If you're seeing this behavior frequently, I'd recommend:
1. First checking your flow logs to understand why the flows are becoming unresponsive
2. Ensuring your db.t4g.small instance has sufficient resources for your workload
3. Verifying that your network connectivity is stable between your flow runners and the Prefect server
Would you like me to help you investigate any specific aspects of these crashes or explain more about configuring the heartbeat mechanism?Nate
07/08/2025, 9:47 PMNate
07/08/2025, 9:47 PMAdam
07/09/2025, 6:12 PMNate
07/09/2025, 6:57 PM