X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/434dee9ff1b42d7169fbd9368263e6a0f5c40bed..28b6afc1e8ccf652c7a8fd43e22a8ac788febd85:/apps/workbench/app/controllers/work_units_controller.rb diff --git a/apps/workbench/app/controllers/work_units_controller.rb b/apps/workbench/app/controllers/work_units_controller.rb index ba2f66abe4..42dd12a4c2 100644 --- a/apps/workbench/app/controllers/work_units_controller.rb +++ b/apps/workbench/app/controllers/work_units_controller.rb @@ -70,7 +70,7 @@ class WorkUnitsController < ApplicationController workflow = Workflow.find? template_uuid if workflow.definition begin - wf_json = ActiveSupport::HashWithIndifferentAccess.new YAML::load(workflow.definition) + wf_json = ActiveSupport::HashWithIndifferentAccess.new YAML.load(workflow.definition) rescue => e logger.error "Error converting definition yaml to json: #{e.message}" raise ArgumentError, "Error converting definition yaml to json: #{e.message}" @@ -83,6 +83,7 @@ class WorkUnitsController < ApplicationController attrs['properties'] = {'template_uuid' => template_uuid} attrs['priority'] = 1 attrs['state'] = "Uncommitted" + attrs['use_existing'] = false # required attrs['container_image'] = "arvados/jobs" @@ -126,6 +127,7 @@ class WorkUnitsController < ApplicationController end attrs['command'] = ["arvados-cwl-runner", + "--enable-reuse", "--local", "--api=containers", "--project-uuid=#{params['work_unit']['owner_uuid']}",