I want to run redis and redis-scheduler from a rake task, so I do the following:
namespace :raketask do
task :start do
system("QUEUE=* rake resque:work &")
system("rake redis:start")
system("rake resque:scheduler")
end
end
The problem is that redis starts in the foreground and then it never starts the scheduler. If it does not start in the background (using &). The scheduler must be running AFTER resuming operation.
source
share