Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/internal/system/dut/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (p *DutSystem) CheckSystem(jobId string, checkType string, environ map[stri
}
return nil
})
fn.Cancelable = true
return fn.Start()
}

Expand Down
4 changes: 3 additions & 1 deletion src/internal/system/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ func (f *Function) atEnd(err error) {
}
progress := JobProgressInfo{
JobId: f.JobId,
Cancelable: false,
Cancelable: f.Cancelable,
}
if err != nil {
// failed
// After failure, set progress.Cancelable to true
progress.Cancelable = true
progress.Progress = -1.0
progress.Status = FailedStatus
progress.Error = &JobError{
Expand Down
Loading