Use a worker for file imports
Same as #1795 (closed), but for file imports this time. The file import task is being ported to a worker: arkindex/workers/import/file#2 (closed) This is the only remaining usage of tasks.
- Add a
file_importoption toarkindex/system_workers.ymlthrough the config parser inupdate_system_workers, and set it toregistry.gitlab.teklia.com/arkindex/workers/import/file:0.1.0 - Remove the file import worker creation from the
bootstrapcommand - Update
ProcessBuilder.build_filesso that it works similarly tobuild_s3: When no worker run exists with the file import worker version, no model version and no configuration, create it. - Remove
ProcessBuilder._create_fake_worker_run - Remove
WorkerVersionManager.imports_version - Make
imagea required argument inProcessBuilder._build_task - Remove the
ARKINDEX_TASKS_IMAGEsetting