Skip to content

Instantly share code, notes, and snippets.

@narze
Created January 14, 2020 10:13
Show Gist options
  • Select an option

  • Save narze/06bddbf182cc0ad8a75b8bff8d156b54 to your computer and use it in GitHub Desktop.

Select an option

Save narze/06bddbf182cc0ad8a75b8bff8d156b54 to your computer and use it in GitHub Desktop.
Removing orphaned processes on Sidekiq

Removing orphaned processes on Sidekiq

Sometimes your Sidekiq processes exit prematurely and the process name is still showing on Sidekiq UI, you have to remove it manually in Redis.

  1. Access Redis from cli
redis-cli your-redis-server-url
  1. Sidekiq uses processes set to store processes ids, so list them with SMEMBERS
> SMEMBERS processes

1) "redis-1:6379:aaaaaaaaaa"
2) "redis-2:6379:bbbbbbbbbb"
  1. Remove unwanted process name with SREM
> SREM processes redis-2:6379:bbbbbbbbbb
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment