Maybe canceling a job is not part of a normal workflow, but in this case it is a business requirement that I need to implement. So let's say I have a model that has been saved to the database, and a job associated with this model which is queued to run in 5 minutes. Before 5 minutes has passed, the user cancels the job (which updates the model with a cancelled=true). My question is how do I tell delayed job not to do the job? Does DJ keep the model ID so I can query for that job and delete it? Or when the job is run, I can just skip execution, but is the model a copy of when the job was created, or do I need to fetch it from the database again?
--Andrew