ruby - Rails: How to restart sidekiq? -


i using sidekiq gem run api calls in background. ran sidekiq in daemon process like:

  bundle exec sidekiq -d 

now made changes in method, want restart sidekiq. tried kill sidekiq using below command:

  kill -9 process_id  

but it's not working. want know command restart sidekiq process. if have idea please share me.

i tried below command also:

 sidekiqctl stop /path/to/pid file/pids/sidekiq.pid 

so after find proces_id, use below command, stop workers getting new jobs, , finish existing jobs.

kill -usr1 [process_id] 

after can kill them

kill -term [process_id] 

also there page on sidekiq/wiki this, called signals.

[edit]

here signal page.

[edit]

check video


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -