Process setting to disable elements.json generation
https://redmine.teklia.com/issues/11528#note-14
-
A new
Process.skip_elements_jsonboolean field should be added:- It defaults to
False. - Its
help_textmust explain that it allows skipping the generation ofelements.jsonfiles by the initialisation task, and only has an affect onWorkersprocesses. - It must be editable in the Django admin.
- It defaults to
-
This new field must be available in
ProcessSerializerand writable. This will affect:-
CreateProcessrequest and response -
CreateFilesProcessresponse -
RetryProcessresponse -
RetrieveProcessresponse -
UpdateProcessresponse -
PartialUpdateProcessresponse -
StartProcessresponse -
CreateProcessTemplateresponse -
ApplyProcessTemplateresponse
-
-
This new field must also be available in
StartProcessSerializerand writable, which affects theStartProcessrequest. -
The
elements_pathargument ofWorkerRun.build_taskmust become a keyword argument that defaults toNone, to make it optional. When this parameter isNone, theTASK_ELEMENTSenvironment variable should not be set. -
ProcessBuilder.build_workersshould, whenProcess.skip_elements_jsonisTrue, passelements_path=Noneinstead of a quoted path to a JSON file.