Open
Description
Hello, thank you for Solid Queue!
We're in the process of migrating an older app form Sidekiq to Solid Queue. We're using Heroku Review apps, and we don't want any recurring jobs to run there. It would be nice if we could completely skip recurring tasks by setting an environment variable.
In searching for a workaround, I found that I could make it work if I added this line to bin/jobs
:
require_relative "../config/environment"
require "solid_queue/cli"
+ ARGV << "--skip-recurring" if ENV["SOLID_QUEUE_SKIP_RECURRING"]
SolidQueue::Cli.start(ARGV)
(This is of course not the right way to add this, but as a workaround, it's okay.)
Is an option like this something you'd be interested in? I could try to implement it properly, similar to how the SOLID_QUEUE_RECURRING_SCHEDULE
environment variable works, and send a PR.
Thank you again!
Metadata
Metadata
Assignees
Labels
No labels