Skip to content

Instantly share code, notes, and snippets.

@djburdick
Created January 6, 2015 20:19
Show Gist options
  • Save djburdick/a6ce85c3c777bf76737b to your computer and use it in GitHub Desktop.
Save djburdick/a6ce85c3c777bf76737b to your computer and use it in GitHub Desktop.
Add rand time to delayed_jobs. #mysql
update `delayed_jobs` set run_at = DATE_ADD(NOW(), INTERVAL 480+rand()*45 MINUTE) where `last_error` like "%ticketNumber=%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment