samsondav/rihanna

Feature request: Delete jobs by term

VitorTrin opened this issue · 1 comments

At some point in time, a job that was scheduled is no longer relevant, or even wrong. As of today, I have the following the options:

  • Prepare the code the job executes to check if it should be executed (not always possible)
  • Delete the job by id. That means that I should persist the job id in a table I create
  • Write queries for the jobs table in my application, code that should be here, and that could break with any update

If I could delete the job using the relevant data to my domain, that is, the module and the function, I could delete the outdated jobs without the need to save the id.

I'm preparing an PR with that

This is blocked by: #62