limits_concurrency on_conflict: :discard looking only into running jobs and not blocked jobs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Start at the concurrency handling for limits_concurrency with on_conflict: :discard, and trace how jobs in Running, Ready, and Blocked are considered while a semaphore remains active. Reproduce the ProcessPrunedError-style state with frequent scheduling; done means conflicting jobs are discarded rather than accumulating in Blocked until the semaphore expires.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In the uncommon case that (because of whatever error, possibly ProcessPrunedError), a job is not running anymore but the Semaphore hasn't expired yet, SolidQueue is piling up new jobs in "Blocked", thus not fulfilling the on_conflict: discard promise.
I see two possible solutions:
- Consider checking if a semaphore is blocking for the key
- Check if a job is "running" not only by looking if there is a job in running or ready but also possibly in blocked
It's slightly an edge case, but if the cron is set up to a quite high frequency, it can pile up quite a bit in the few hours the semaphore hasn't expired.
NB: this happened on SolidQueue 1.3.1. We want to update soon and I have not seen in the changelog what could have fixed it "en passant"
- Lingua principale
- Ruby
- Stelle
- 2.5k
- Fork
- 250
- Merge medio
- 8h 31m
- PR unite (30g)
- 5
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rails/solid_queue
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
rails/solid_queue#802 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
rails/solid_queue#797 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
rails/solid_queue#792 · 1 reazione ·
-
Let `bin/jobs check` validate a config for an env it isn't running in, and without a database Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
rails/solid_queue#780 ·
-
Removing job from recurring.yml does not remove job from recurring tasks tab in mission control Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
rails/solid_queue#623 · 2 reazioni ·
Tutte le issue di rails/solid_queue
Issue simili
-
user-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Kong/developer.konghq.com#7316 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
TheOdinProject/curriculum#31408 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
CI: json 3.0.2 removed `quirks_mode`, breaking ActiveSupport's JSON encoder on every test job Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
bensheldon/good_job#1816 · 5 commenti ·