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
CorpusWorkerVersionmodel 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_versionwith a light serializer - add a
configurationwith a light serializer (no need to expose full config)
- add a
- extend
DestroyWorkerResultsto 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
-