Skip to content

Commit a1e64e7

Browse files
committed
update
1 parent 20b5777 commit a1e64e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/actions/clear_tasks.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ func CancelAbandonedJobs(ctx context.Context) error {
106106
UpdatedBefore: timeutil.TimeStamp(time.Now().Add(-setting.Actions.AbandonedJobTimeout).Unix()),
107107
})
108108
if err != nil {
109-
log.Warn("find abandoned tasks: %v", err)
110109
return err
111110
}
112111

@@ -124,7 +123,7 @@ func CancelAbandonedJobs(ctx context.Context) error {
124123
updated = err == nil && n > 0
125124
return err
126125
}); err != nil {
127-
log.Warn("cancel abandoned job %v: %v", job.ID, err)
126+
log.Warn("CancelAbandonedJobs jobid %v: %v", job.ID, err)
128127
// go on
129128
}
130129
CreateCommitStatus(ctx, job)
@@ -137,7 +136,7 @@ func CancelAbandonedJobs(ctx context.Context) error {
137136
for runid, job := range updatedRuns {
138137
jobs, err := actions_model.GetRunJobsByRunID(ctx, runid)
139138
if err != nil {
140-
log.Error("Count waiting jobs for run %d: %v", runid, err)
139+
log.Error("CancelAbandonedJobs runid %d: %v", runid, err)
141140
continue
142141
}
143142
unfinished := false

0 commit comments

Comments
 (0)