Himanshu
09/10/2024, 1:29 PMMarvin
09/10/2024, 1:29 PMasyncio
tasks, especially when using time.sleep
or other blocking calls, can cause crashes.
### Actions to Consider:
- Check Infrastructure: Ensure the infrastructure used (Docker, Kubernetes, etc.) is correctly configured and stable.
- Review Task Usage: Avoid blocking calls within async tasks. Use await
for async-friendly delays.
- Review Logs: Examine Prefect, Docker, or Kubernetes logs to identify crashes or terminations.
Here are a few links you might find useful:
- Prefect Flows - Concepts
- Prefect Runtime Context Guide
- GitHub Issue: "Crash detected! Execution was cancelled by the runtime environment"
Good luck resolving your issue! If anything's unclear or needs more specifics, just holler!