bensheldon / good_job

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

Synchronize `CapsuleTracker#renew` #1369

Closed bensheldon closed 4 months ago

bensheldon commented 4 months ago

Connects to https://github.com/bensheldon/good_job/issues/1363

This is the one unsynchronized call that updates the Process record inside of the Capsule tracker. I suspect there is a weird concurrency thing going on in #1363 but I'm not entirely sure. This should be safe and the worst downside will be a little performance hit because of the lock.