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

Add the possibility to set JOB_CLASS in get_scheduler call

Open mato2000 opened this issue 4 years ago • 1 comments

Currently the get_scheduler call supports only these arguments: name, queue, and interval. But when instances a new scheduler it takes the job_class from queue.job_class. If you want to change the job_class you should set the JOB_CLASS env variable globally, but you cannot do it by code. It would be better if get_scheduler have an extra job_class kwarg just like Scheduler class.

mato2000 avatar Apr 08 '20 14:04 mato2000

PR welcome!

selwin avatar Jun 05 '20 00:06 selwin