collectiveidea / delayed_job

Database based asynchronous priority queue system -- Extracted from Shopify
http://groups.google.com/group/delayed_job
MIT License
4.81k stars 955 forks source link

Fix for daemon options with arguments #1114

Open jsgarvin opened 4 years ago

jsgarvin commented 4 years ago

Some Daemon options take their own arguments. These weren't gettng passed in to the deamons gem properly. With this, if we...

delayed_job stop --daemon-options '-w 42'

...the -w 42 gets passed through as expected.

I'm wide open to suggestions for a cleaner/less hacky way to do this, but under a time crunch here to make this work quick, so this is what I've got at the moment.

I didn't see where --daemon-options was currently being tested within delayed_jobs so didn't update the tests.