ruby on rails - Sidekiq - Enqueued Job is running from old code -


i have 30 sidekiq jobs scheduled in future (let's days 1 in day next 30 days).

i use capistrano deployment. have 5 release directories @ anytime. let's say:

/var/www/release1/ (recent) /var/www/release2/ /var/www/release3/ /var/www/release4/ /var/www/release5/ 

let's after few days, make new release. now, scheduled jobs still running old code. expected? how can fix ensure uses latest release directory when starts running rather when scheduled?

this because sidekiq process didn't restart after successful deployment.

make sure deployment process restarts sidekiq , make sure restart works, otherwise sidekiq processes still holding on old code.

https://github.com/mperham/sidekiq/wiki/deployment


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -