Harshith Gogineni
10/15/2025, 1:56 PMMarvin
10/15/2025, 1:56 PMMarvin
10/15/2025, 2:04 PMprefect automation ls
prefect automation inspect "YOUR AUTOMATION NAME" --yaml
Docs: Automation CLI
3) Confirm the event occurred
- Go to the Events page and filter by the time window and the flow run. You should see a “flow run entered Crashed” style event for that run. If the event never occurred, the automation won’t fire.
- Event concepts: Event triggers
4) Check the action (Call Webhook) configuration
- Make sure the URL, method, headers, and body template are correct.
- Ensure the webhook endpoint returns a 2xx response; non-2xx will be recorded as an action failure.
- Set a sensible timeout and retries if needed.
- If you can, test the endpoint with curl or your API client to confirm it’s reachable from your network.
- How to create/configure a webhook: Create a webhook
5) Look for automation action results
- In the UI, open the automation and check recent runs/results. If the action failed, you’ll see error details there (status code, timeout, etc.).
6) Reproduce a true “crash” to test
- Raising an exception will mark the run as Failed, not Crashed. To simulate a crash, you can kill the process:
from prefect import flow
import os, signal
@flow
def crash():
os.kill(os.getpid(), signal.SIGKILL)
if __name__ == "__main__":
crash()
- Run this the same way you run your normal flows (ideally as a deployment) so the automation can see it.
Common gotchas
- Triggering on the wrong resource (Task run vs Flow run)
- Filters too restrictive (tags/deployment mismatch)
- The run ended as Failed not Crashed
- Automation is paused/disabled
- Webhook endpoint blocked by firewall/VPC or requiring auth headers that weren’t set
If you share:
- The automation config (you can paste the prefect automation inspect --yaml output)
- A flow run ID that ended in Crashed and the approximate time
- The webhook URL domain (redact secrets) and whether it requires auth
…I can pinpoint the issue and suggest an exact fix.Harshith Gogineni
10/21/2025, 6:46 AM