rq-scheduler icon indicating copy to clipboard operation
rq-scheduler copied to clipboard

adds support for rqworker settings files

Open prehensile opened this issue 10 years ago • 2 comments

as detailed at http://python-rq.org/docs/workers/

Allows rq-scheduler to read from these config files, thus enabling sharing of config with rqworker.

prehensile avatar Jul 11 '15 00:07 prehensile

Hi @prehensile , I think this is a great idea. Do you mind if we reuse RQ's implementation for much of the configuration parsing though? I'd rather keep the two scripts as similar as possible for consistency and to lower maintenance burden.

For example, we can delegate connection setup to rq.cli.cli.connect, the cli script also has many decorators that we can reuse to simplify argument parsing such as url_option and config_option.

Ideally, we should also convert the script to use click - this means we should also require a recent version of RQ in setup.py

selwin avatar Jul 29 '15 13:07 selwin

@selwin good points, I'll have a look.

prehensile avatar Aug 23 '15 20:08 prehensile