rq-scheduler
rq-scheduler copied to clipboard
how to set job id in schedule options?
You can't. That is set by default. But you can use "description".
Recent versions of RQ accepts job_id
argument so I think we should support that as well. PR for this welcome :)
Reading the code it seems that you should be able use the id
keyword argument to set the job id, e.g.:
scheduler.schedule(date, function, args=args, kwargs=kwargs, id=job_id)
Actually....... more like this: ... Don't pass the arg to "id
" use, "job_id
" instead.
scheduler.enqueue_at(when, func, params, job_id=job_id)