mozilla / telemetry-server

Server for the Mozilla Telemetry project
Other
41 stars 35 forks source link

Send an error email if the job exits nonzero. #139

Closed mreid-moz closed 8 years ago

mreid-moz commented 8 years ago

I haven't tested yet, so I'm not 100% confident in the multi-layered bash escaping, but it should work.

mreid-moz commented 8 years ago

r? @vitillo

vitillo commented 8 years ago

Looks good, could you also apply the same fix to the Spark side of things?

mreid-moz commented 8 years ago

Added some code to notify if the aws emr create-cluster command encounters an error, or if the launch_worker command exits with any error. We should apply a similar fix to batch.sh over in the emr-bootstrap-spark repo.