Skip to content

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:

  1. extend CorpusWorkerVersion model to support model version & worker configuration
  2. fill in these fields when creating new processes from worker runs
  3. 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)
  4. extend DestroyWorkerResults to support two more filters:
    • model_version_id, defaults to null, supports UUID of model versions to delete
    • configuration_id, defaults to null, 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