Commit d4108e3f authored by Steven Zou's avatar Steven Zou
Browse files

fix(preheat):handle fail case of preheat in job

Signed-off-by: default avatarSteven Zou <>
parent 560eba7b
......@@ -185,9 +185,15 @@ func (j *Job) Run(ctx job.Context, params job.Parameters) error {
myLogger.Infof("Check preheat progress: %s", s)
// Finished
if s.Status == provider.PreheatingStatusSuccess {
switch s.Status {
case provider.PreheatingStatusFail:
// Fail
return preheatJobRunningError(errors.Errorf("preheat failed: %s", s))
case provider.PreheatingStatusSuccess:
// Finished
return nil
// do nothing, check again
if shouldStop() {
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