bug: TERM on the daemon does not always wait for the jobs to complete #944
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/runner#944
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It is yet unclear how to reproduce it. This is to collect evidence.
A workflow was in progress. One job was starting and got interrupted instead of being waited on.
https://code.forgejo.org/xorm/xorm/actions/runs/22/jobs/3
Server side
Job logs
Regarding shutdown
#202 is when it was introduced
#870 is the pull request that changed how contexts are built
I think the issue is that the daemon context is canceled by the signal and now it propagates to the jobs. Before that the jobs were ignorant of the daemon context.
func main() {ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)defer stop()// run the commandcmd.Execute(ctx)}