voxmedia / autotune

Platform for reusable news tools
BSD 3-Clause "New" or "Revised" License
414 stars 33 forks source link

Error handling in job chains #367

Closed ryanmark closed 7 years ago

ryanmark commented 8 years ago

Update ActiveJob::Chain to fire off a special job in response to a error in one of the jobs in the chain. Basically makes ActiveJob::Chain work similar to a Javascript Promise (but without argument passing).

This change was originally made to prevent project and blueprint jobs from failing and getting stuck in Building or Upgrading states. It may not be entirely necessary, but it does make the job processing more robust.