bensheldon / good_job

Multithreaded, Postgres-based, Active Job backend for Ruby on Rails.
https://goodjob-demo.herokuapp.com/
MIT License
2.53k stars 190 forks source link

InterruptErrors should differentiate between the prior execution that was interrupted, and the current execution that raises the rescuable exception #1382

Open bensheldon opened 3 weeks ago

bensheldon commented 3 weeks ago

Currently when an execution is interrupted and then retried and handled via the InterruptErrors extension, there are 2 executions in play:

Currently, both records are updated with the same InterruptError which is confusing. I think there should be a different error recorded on the execution(s) that are interrupted to differentiate and explain why an interrupt results in 2 different executions (I just confused myself with this).