Commit 5d50cbfa authored by Shinya Maeda's avatar Shinya Maeda

Use unknown_failure for runner

parent 69df47c7
......@@ -129,11 +129,8 @@ module API
when 'success'
job.success
when 'failed'
if params[:failure_reason]
job.drop(params[:failure_reason].to_sym)
else
job.drop(:job_failure)
end
failure_reason = params[:failure_reason] ? params[:failure_reason].to_sym : :unknown_failure
job.drop(failure_reason)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment