Retry JobManagerCrashedError and limit a certain number of retries (#2221)
* add attempts field
* fix worker style
* Remove difficulty increase
* add tests
* fix style
* adding migrations for new fields
* removing attempts from job collection
* set attempts if previous job exists
* rename new field to "retries"
* apply code review suggestions
* fix style