@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'