Use unknown_failure for runner

This commit is contained in:
Shinya Maeda 2017-09-04 22:46:37 +09:00
parent 69df47c7e4
commit 5d50cbfaab

View file

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