Use unknown_failure for runner
This commit is contained in:
parent
69df47c7e4
commit
5d50cbfaab
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue