fix: Pass string method path to q.enqueue_call
Passing a method results in rq doing some internal gymnastics to generate this string. In our case, this function never changes so we can get rid of those steps
This commit is contained in:
parent
281e04bd5e
commit
aee278b6ae
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ def enqueue(
|
|||
|
||||
def enqueue_call():
|
||||
return q.enqueue_call(
|
||||
execute_job,
|
||||
"frappe.utils.background_jobs.execute_job",
|
||||
on_success=Callback(func=on_success) if on_success else None,
|
||||
on_failure=Callback(func=on_failure) if on_failure else None,
|
||||
timeout=timeout,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue