Files
ubicloud/spec/routes/web/webhook
Jeremy Evans 1f7641b78f Avoid Sequel::NoExistingObject in race condition in github webhook
Use a transaction and FOR UPDATE to ensure the returned row is
still in the database when we get to the update call.  This was
chosen over using Dataset#update, because of the later call
to incr_destroy.  If the runner has been deleted, likely the
related strand has been deleted, and we probably don't want to
create a semaphore for a strand that no longer exists.
2025-03-28 09:31:41 -07:00
..