mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
Merge pull request #5450 from ywk253100/180801_job_status
Update job status when failed to submit it
This commit is contained in:
commit
5f64bc8548
@ -119,6 +119,9 @@ func (d *DefaultReplicator) Replicate(replication *Replication) error {
|
||||
|
||||
uuid, err := d.client.SubmitJob(job)
|
||||
if err != nil {
|
||||
if er := dao.UpdateRepJobStatus(id, common_models.JobError); er != nil {
|
||||
log.Errorf("failed to update the status of job %d: %s", id, er)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user