You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into instances where I have multiple repeated tasks in queue. I thought I'd share them in case they're worth adding to django_rq:
# path/to/utils.pydeffunc_in_task_queue(queue_name:str , job_func: str, *args, **kwargs) ->bool:
queue=django_rq.get_queue(queue_name)
# check for the function in the queuereturnany(job.func_name==job_funcandjob.args==argsandjob.kwargs==kwargsforjobinqueue.jobs)
defjob_in_task_queue(queue_name: str, job_id: str) ->bool:
queue=django_rq.get_queue(queue_name)
# check for the function in the queuereturnany(job.id==job_idforjobinqueue.jobs)
I've run into instances where I have multiple repeated tasks in queue. I thought I'd share them in case they're worth adding to django_rq:
Then the use is something like:
Thanks for the work on the package.
The text was updated successfully, but these errors were encountered: