Extend corpus worker versions to support models
Refs https://gitlab.com/teklia/requests/-/issues/839
We want to delete ML results, depending on a specific worker + model version.
Steps:
- extend
CorpusWorkerVersion
model to support model version & worker configuration - fill in these fields when creating new processes from worker runs
- serialize these informations in
ListCorpusWorkerVersions
- add a
model_version
with a light serializer - add a
configuration
with a light serializer (no need to expose full config)
- add a
- extend
DestroyWorkerResults
to support two more filters:-
model_version_id
, defaults tonull
, supports UUID of model versions to delete -
configuration_id
, defaults tonull
, supports UUID of configurations to delete - It's fine to support only consecutive ids: a model version should only be specified along with a worker version, same goes for configuration
-