scheduler.tools.run_job
stealing visibility of real callables
#108
Replies: 2 comments 3 replies
-
Upon further look, it feels like a deal-breaker to have all jobs (especially the failing ones) named Here I have, another easier-to-implement idea: Let me know if you need help with it. One dirty solution is to make the Cronjob's job be a job that enqueues the real job (at front). and the Cronjob result_ttl would be 1 or even 0. Thanks! |
Beta Was this translation helpful? Give feedback.
-
This led me to work on removing the dependency on django-rq and rq (among other things, but like you said, that was the deal breaker). I am working on redesigning it at the moment, and the more I dig into it, I realize it is better to write a new package from scratch. |
Beta Was this translation helpful? Give feedback.
-
Hi @cunla ,
Besides from the current dependency on django-rq which makes truly cumbersome to troubleshoot failed jobs (they all look the same), the visibility is also very affected on every rq-related tool (e.g logging platform) that thinks that the callable is the actual callable, and not a helper to call the actual callable.
I understand that the need for scheduler.tools.run_job comes from being able to use functions as parameters that need to be evaluated before running the job each time.
So, I propose (and I offer my help to do), make it so if there's no callable function as argument, then the
True
callable is put. and if there's a callable then the scheduler will schedule scheduler.tools.run_job.Let me know.
Beta Was this translation helpful? Give feedback.
All reactions