Update build_workflow to support DataImport.Workers
The DataImport.build_workflow method needs to do the following:
- add an element init task, just like for
Elements - add one task per worker run
- each worker run will have a
slugand abuild_taskmethod
The Worker run slug is the slug of the worker version concatenated with the 6 first chars of the worker run (or worker version ) id
The build_task method must return a dictionnary with the following keys:
-
imageisnull -
commandis the worker version command from its config -
artifactis the uuid of the docker image -
parentsis the list of parents worker run slugs
Edited by Eva Bardou