rq / rq-scheduler

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

[Feature] count the number of times job executed #226

Open arbazkiraak opened 4 years ago

arbazkiraak commented 4 years ago

https://stackoverflow.com/questions/60402019/python-rq-scheduler-count-the-number-of-times-job-executed

taewookim commented 4 years ago

create a meta variable and just increment

task.meta["execution_count"] += 1