Skip to main content

Shell

Use a trap so failures report even when the job exits early:

Python

Give ping requests their own short timeout. Monitoring should report the job without making the job wait indefinitely on the monitoring service.