Cleanup archived workers and models
Refs https://redmine.teklia.com/issues/4717
Depends #1657 (closed)
Depends #1656 (closed)
The arkindex cleanup
management comment must support 2 new actions to cleanup archived workers and models, after a delay.
That delay is set in days in the application settings (I suggest naming them worker_cleanup_delay
& model_cleanup_delay
, defaulting both to 30)
When a worker/model is archived, and it's archived date difference to today is larger than the setting, then we try to delete it.
- uses a worker version
- is linked to a worker run with the model to delete