@object.state = 'Final'
end
end
- @object.update_attributes! priority: 0
+ @object.update! priority: 0
if params[:return_to]
redirect_to params[:return_to]
else
if params[:use_existing] || params[:use_existing].nil?
# If nil, reuse workflow steps but not the workflow runner.
- @object.use_existing = (params[:use_existing] ? true : false)
+ @object.use_existing = !!params[:use_existing]
# Pass the correct argument to arvados-cwl-runner command.
if command[0] == 'arvados-cwl-runner'
- command -= ['--disable-reuse']
+ command -= ["--disable-reuse", "--enable-reuse"]
command.insert(1, '--enable-reuse')
end
else
@object.use_existing = false
# Pass the correct argument to arvados-cwl-runner command.
if command[0] == 'arvados-cwl-runner'
- command -= ['--enable-reuse']
+ command -= ["--disable-reuse", "--enable-reuse"]
command.insert(1, '--disable-reuse')
end
end