19070: --create/update-workflow also implies --match-submitter-images
[arvados.git] / sdk / cwl / arvados_cwl / executor.py
index eace9f449f9802b097fb5c8872fe51137f0a5271..0daa15d5f0ac18aed8c7628f3b7483213b44fea1 100644 (file)
@@ -545,7 +545,11 @@ The 'jobs' API is no longer supported.
             runtimeContext.name = self.name = updated_tool.tool.get("label") or updated_tool.metadata.get("label") or os.path.basename(updated_tool.tool["id"])
 
         if self.runtimeContext.copy_deps is None and (runtimeContext.create_workflow or runtimeContext.update_workflow):
+            # When creating or updating workflow record, by default
+            # always copy dependencies and ensure Docker images are up
+            # to date.
             self.runtimeContext.copy_deps = True
+            self.runtimeContext.match_local_docker = True
 
         if self.runtimeContext.update_workflow and self.project_uuid is None:
             # If we are updating a workflow, make sure anything that