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.
Comments
Post a Comment