Skip to content

Instantly share code, notes, and snippets.

@mschewe
Last active June 27, 2016 09:17
Show Gist options
  • Save mschewe/6c8e81372f9b17fb192a214aa765c8e7 to your computer and use it in GitHub Desktop.
Save mschewe/6c8e81372f9b17fb192a214aa765c8e7 to your computer and use it in GitHub Desktop.

Remove a long running sidekiq job from the redis database

  • Stop all workers This forces the worker to write the job again into the redis database.

  • Find the matching queue smembers queues

1) "default"
2) "mailers"
3) "monitoring"
  • Show the jobs in the queue LRANGE queue:monitoring 0 1

  • Delete the job LPOP queue:monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment