Store the number of times a job has been attempted in the database
Description
Currently the number of times a job has been retried is lost when using an SQLDataStore
, which means that jobs will be retried forever rather than respecting the limit defined in Scheduler.MAX_N_TRIES
.
This MR solves this by adding a field in the jobs table to store this information and persist it across instantiations of Job
(and so also across instances of Scheduler
eventually).
Part of #185 (closed)