I am working on a Rails application with several RAILS_Env
env_name1: adapter: mysql username: root password: host: localhost database: db_name_1 env_name2: adapter: mysql username: root password: host: localhost database: db_name_2 ... .. .
And I use the delayed_job plugin (2.0.5) to control asynchrone and background work.
I would like to run multi delayed_job in RAILS_ENV:
RAILS_ENV=env_name1 script/delayed_job start RAILS_ENV=env_name2 script/delayed_job start ..
I noticed that I can run only one instance of delayed_job for the second I have this error "ERROR: there is already one or more instances of the program running"
My question is: is it not possible to run multiple instances of delayed_job in RAILS_ENV? Thanks
multithreading asynchronous ruby-on-rails delayed-job
Slim tekaya
source share