← Graph

Sidekiq Retry Race Condition Fixed In 7

question 2 connections

Audience question asking how Sidekiq 7 solves the race condition of jobs scheduled inside a database transaction running before the transaction commits. Paweł answered that the pull request was still open and he didn't know the implementation details, only that this was flagged as one of the most important items for Sidekiq 7 and jobs would wait for the transaction to commit. A second attendee commented that the common solution is to persist an intent marker in the same transaction and have the job read it (retrying a few times for stale transactions, discarding after a delay), acknowledging there is no simple universal solution.

answer_summary
Paweł didn't know the mechanism; Sidekiq 7 will make jobs wait for commit. An attendee suggested storing an intent record in the same transaction and retrying reads in the job.
question Sidekiq Retry Race Condition Fixed In 7
about
Sidekiq tool
Concerns Sidekiq 7's fix for the transaction-commit race condition.
question Sidekiq Retry Race Condition Fixed In 7
asked_at
Question asked during the Q&A of this talk.

Provenance

Read by
3 extractions