You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
(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!
The text was updated successfully, but these errors were encountered:
This file is used for Production, Staging, and Review Apps – so the flag would either always be set, or never. The best way to be environment specific in Heroku is … to use environment variables. :D
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!
The text was updated successfully, but these errors were encountered: