Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
21e7eef
fix
NorthRealm Aug 5, 2025
0ec1bb3
add trace
NorthRealm Aug 5, 2025
3957352
add trace
NorthRealm Aug 5, 2025
cdb1e80
assume
NorthRealm Aug 5, 2025
7384a65
add trace
NorthRealm Aug 5, 2025
1d9c378
update
NorthRealm Aug 5, 2025
c3a7f15
Revert "assume"
NorthRealm Aug 5, 2025
bc3a467
remove duplicate workflow run trigger + add test for cancel
ChristopherHX Aug 6, 2025
cf547bb
update
NorthRealm Aug 6, 2025
8901e59
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 8, 2025
a9a826f
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 8, 2025
e212011
remove timeout
ChristopherHX Aug 8, 2025
0506162
update
NorthRealm Aug 9, 2025
6bcdd7e
fix more workflow_run completion events
ChristopherHX Aug 10, 2025
3a44248
modernize
ChristopherHX Aug 10, 2025
3d8b2f5
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 11, 2025
5eaa9c8
error logs
NorthRealm Aug 13, 2025
a7ddfc9
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 13, 2025
1539d9f
update
NorthRealm Aug 14, 2025
4e52f0f
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 14, 2025
f19e9e3
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 15, 2025
bab5ff2
update
NorthRealm Aug 15, 2025
ec62f81
Revert "update"
NorthRealm Aug 15, 2025
20b5777
update
NorthRealm Aug 15, 2025
a1e64e7
update
NorthRealm Aug 15, 2025
7bb8e16
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 15, 2025
1bc9097
Revert "update"
NorthRealm Aug 15, 2025
2330dcf
Revert "update"
NorthRealm Aug 15, 2025
bfc4f6e
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 16, 2025
341c5d8
fix maybe
NorthRealm Aug 19, 2025
846731a
wtf
NorthRealm Aug 19, 2025
7a41096
Revert "wtf"
NorthRealm Aug 19, 2025
42b6b4e
f
NorthRealm Aug 19, 2025
45dcc12
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 19, 2025
4773ea5
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 20, 2025
cef6eba
update
NorthRealm Aug 20, 2025
b7719ee
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 20, 2025
aa85d80
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 21, 2025
d00d5cf
do not explicitly expect a workflow run completion event while jobs a…
ChristopherHX Aug 21, 2025
24d46df
update
NorthRealm Aug 22, 2025
030b1de
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 22, 2025
aee9f6a
Merge branch 'main' into patch-actions-email-2
NorthRealm Aug 22, 2025
5efd4b9
UPDATE
NorthRealm Aug 22, 2025
e4a5b82
Merge branch 'main' into patch-actions-email-2
GiteaBot Aug 23, 2025
502f387
Merge branch 'main' into patch-actions-email-2
GiteaBot Aug 23, 2025
ab8abf9
Merge branch 'main' into patch-actions-email-2
GiteaBot Aug 23, 2025
a27e5bd
Merge branch 'main' into patch-actions-email-2
GiteaBot Aug 23, 2025
05b3384
Merge branch 'main' into patch-actions-email-2
GiteaBot Aug 24, 2025
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
Prev Previous commit
Next Next commit
Revert "update"
This reverts commit 20b5777.
  • Loading branch information
NorthRealm committed Aug 15, 2025
commit 2330dcfe8ade9c74219dee4474c978b13a46e5c9
21 changes: 8 additions & 13 deletions services/actions/clear_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,18 @@ func CancelAbandonedJobs(ctx context.Context) error {
}
}

for runid, job := range updatedRuns {
jobs, err := actions_model.GetRunJobsByRunID(ctx, runid)
for _, job := range updatedRuns {
c, err := db.Count[actions_model.ActionRunJob](ctx, actions_model.FindRunJobOptions{
RunID: job.RunID,
Statuses: []actions_model.Status{actions_model.StatusWaiting, actions_model.StatusBlocked, actions_model.StatusRunning},
})
if err != nil {
log.Error("Count waiting jobs for run %d: %v", runid, err)
log.Error("Count waiting jobs for run %d: %v", job.RunID, err)
continue
}
unfinished := false
for _, job := range jobs {
if !job.Status.IsDone() {
unfinished = true
break
}
}
if unfinished {
continue
if c == 0 {
NotifyWorkflowRunStatusUpdateWithReload(ctx, job)
}
NotifyWorkflowRunStatusUpdateWithReload(ctx, job)
}

return nil
Expand Down