Skip to content

Process setting to disable elements.json generation

https://redmine.teklia.com/issues/11528#note-14

  • A new Process.skip_elements_json boolean field should be added:

    • It defaults to False.
    • Its help_text must explain that it allows skipping the generation of elements.json files by the initialisation task, and only has an affect on Workers processes.
    • It must be editable in the Django admin.
  • This new field must be available in ProcessSerializer and writable. This will affect:

    • CreateProcess request and response
    • CreateFilesProcess response
    • RetryProcess response
    • RetrieveProcess response
    • UpdateProcess response
    • PartialUpdateProcess response
    • StartProcess response
    • CreateProcessTemplate response
    • ApplyProcessTemplate response
  • This new field must also be available in StartProcessSerializer and writable, which affects the StartProcess request.

  • The elements_path argument of WorkerRun.build_task must become a keyword argument that defaults to None, to make it optional. When this parameter is None, the TASK_ELEMENTS environment variable should not be set.

  • ProcessBuilder.build_workers should, when Process.skip_elements_json is True, pass elements_path=None instead of a quoted path to a JSON file.