Skip to content

Commit 1bc9097

Browse files
committed
Revert "update"
This reverts commit a1e64e7.
1 parent 7bb8e16 commit 1bc9097

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/actions/clear_tasks.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ 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)
109110
return err
110111
}
111112

@@ -123,7 +124,7 @@ func CancelAbandonedJobs(ctx context.Context) error {
123124
updated = err == nil && n > 0
124125
return err
125126
}); err != nil {
126-
log.Warn("CancelAbandonedJobs jobid %v: %v", job.ID, err)
127+
log.Warn("cancel abandoned job %v: %v", job.ID, err)
127128
// go on
128129
}
129130
CreateCommitStatus(ctx, job)
@@ -136,7 +137,7 @@ func CancelAbandonedJobs(ctx context.Context) error {
136137
for runid, job := range updatedRuns {
137138
jobs, err := actions_model.GetRunJobsByRunID(ctx, runid)
138139
if err != nil {
139-
log.Error("CancelAbandonedJobs runid %d: %v", runid, err)
140+
log.Error("Count waiting jobs for run %d: %v", runid, err)
140141
continue
141142
}
142143
unfinished := false

0 commit comments

Comments
 (0)