Skip to content

Commit

Permalink
fix: undo change in execute_job()
Browse files Browse the repository at this point in the history
Something is increasing the base memory usage from 41MB to 57MB, this is the only change?

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
  • Loading branch information
akhilnarang committed Apr 12, 2024
1 parent f29e739 commit 8d710ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/utils/background_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def execute_job(
method_name = method
method = frappe.get_attr(method)
else:
method_name = frappe.utils.method_to_string(method)
method_name = f"{method.module}.{method.__qualname__}"

actual_func_name = kwargs.get("job_type") if "run_scheduled_job" in method_name else method_name
setproctitle.setproctitle(f"rq: Started running {actual_func_name} at {time.time()}")
Expand Down

0 comments on commit 8d710ac

Please sign in to comment.