saurabhnanda / odd-jobs

Haskell job queue with admin UI and loads of other features.
https://www.haskelltutorials.com/odd-jobs/
BSD 3-Clause "New" or "Revised" License
75 stars 29 forks source link

Potential bug in "jobPollingWithResourceSql" (not using "FOR UPDATE" clause) #112

Open saurabhnanda opened 2 hours ago

saurabhnanda commented 2 hours ago

If you compare jobPollingSql vs jobPollingWithResourceSql you'll find that the latter not using "FOR UPDATE"

https://github.com/saurabhnanda/odd-jobs/blob/a159d7a17913725a0cb2a2251fa0b812acd3d160/src/OddJobs/Job/Query.hs#L22-L34

cc: @ivb-supercede

jezen commented 2 hours ago

FYI, Isaac no longer works at Supercede, so he's probably only reachable through @ivanbakel.