Skip to content

Topic

Job observability

Practices for making scheduled and batch work report enough about a failure that it can be diagnosed after the run, rather than leaving only an exit code.

Current clusters

build1 publisher

Adding -E made a silent ERR trap name the failing mkdir on line 5

Under set -euo pipefail, a failing mkdir inside a helper function killed a nine-line script while the ERR trap printed nothing. Adding one letter, -E, made the same trap report the command and the line it died on.

Publishers:dev.to

Reality

Evidence68
Adoption
Insufficient
Hype gap+8
Incentives45
Confidence66