completed jobs
henry-hz opened this issue · 2 comments
henry-hz commented
Hi,
pls, is there any configuration or explicit message to send that marks jobs as completed ?
After running my jobs, the state continues as "IN PROGRESS".
Do you think that a configurable cleaner job should be made to clean the completed jobs after X time ?
mbuhot commented
Completed jobs should be deleted by passing the Multi to Repo.transaction.
https://github.com/mbuhot/ecto_job/blob/master/lib/ecto_job/job_queue.ex#L287
Is that failing?
henry-hz commented
it's working, sorry, my fault, i forgot to finish with MyApp.Repo.transaction() to signal ecto_job that it was done. thanks :)