worker: log errors that are not returned to composer
This commit is contained in:
parent
b1c5ef2ad4
commit
df99e8b359
1 changed files with 2 additions and 0 deletions
|
|
@ -91,11 +91,13 @@ func handleJob(client *ComposerClient) error {
|
|||
fmt.Printf("Running job %s\n", job.ID.String())
|
||||
image, err, errs := job.Run()
|
||||
if err != nil {
|
||||
log.Printf(" Job failed: %v", err)
|
||||
return client.UpdateJob(job, "FAILED", nil)
|
||||
}
|
||||
|
||||
for _, err := range errs {
|
||||
if err != nil {
|
||||
log.Printf(" Job target error: %v", err)
|
||||
return client.UpdateJob(job, "FAILED", nil)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue