fractaledmind / acidic_job

Elegant, resilient, durable workflows for Rails apps
https://fractaledmind.github.io/acidic_job/
MIT License
492 stars 10 forks source link

How to reset the jobs? #74

Closed fabiengagne closed 1 year ago

fabiengagne commented 1 year ago

Hi, First day with AcidicJob.

I've created a Custom Idempotency Key and then tried to add a collection to one of the steps. I may have had a syntax error or something in the step or workflow, I'm not sure. But now it wont run any steps in this job, nor any more job (on this idempotency key). How can I reset the job or the whole gem?

I tried to AcidicJobRuns.destroy_all in the console but it fails with uninitialized constant AcidicJobRuns (NameError) Actually AcidicJobRuns.all fails with the same error.

Stuck :/

fabiengagne commented 1 year ago

I found how, it's with AcidicJob::Run.destroy_all