rq / rq-scheduler

A lightweight library that adds job scheduling capabilities to RQ (Redis Queue)
MIT License
1.45k stars 230 forks source link

Add function name to the debug logs #217

Closed kingbuzzman closed 4 years ago

kingbuzzman commented 5 years ago

When debugging it is not very user friendly it just shows the job.id. This change adds the function name to help debug problems.

The current log output looks something like this:

Pushing fdfc4e56-22fa-474f-9378-e6dad47f5fc9 to default-medium

I think we can all agree that after 5 or 10 scheduled jobs this becomes pretty meaningless. I propose this:

Pushing path.to.func_name(fdfc4e56-22fa-474f-9378-e6dad47f5fc9) to default-medium
andreburto commented 5 years ago

Much easier when searching through logs to have the function name.

kingbuzzman commented 5 years ago

@selwin what do you think?

kingbuzzman commented 4 years ago

@selwin is there anything else you want to see in the PR?

selwin commented 4 years ago

Sorry for the late reply. Thanks!

kingbuzzman commented 4 years ago

Thank you! Any idea when this will be in 0.9.2? or 0.10.0? I just now realized I should have updated the version.