Created
January 14, 2016 22:53
-
-
Save markstgodard/8d672fea6bccee9979ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update delayed_jobs set priority = (case when priority = 0 then 1 else priority * 2 end) where failed_at is null and attempts > 0 and last_error is not null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment