With the introduction of bin/jobs in #308, I noticed that it ignores the SOLID_QUEUE_CONFIG environment variable (and the recently introduced SOLID_QUEUE_RECURRING_SCHEDULE), while rails solid_queue:start still respects both of them.
This PR is my attempt to fix it.
Please let me know if it is worth adding tests for the SolidQueue::Cli.
Also, I hope that the direction is correct, although the logic duplicates default_options from SolidQueue::Configuration.
With the introduction of
bin/jobs
in #308, I noticed that it ignores theSOLID_QUEUE_CONFIG
environment variable (and the recently introducedSOLID_QUEUE_RECURRING_SCHEDULE
), whilerails solid_queue:start
still respects both of them.This PR is my attempt to fix it.
Please let me know if it is worth adding tests for the
SolidQueue::Cli
.Also, I hope that the direction is correct, although the logic duplicates
default_options
fromSolidQueue::Configuration
.