mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
fix(queue): force agent cancellation on lease expiration (#5823)
This commit is contained in:
@@ -33,6 +33,9 @@ var (
|
||||
|
||||
// ErrAgentMissMatch indicates a task is assigned to a different agent.
|
||||
ErrAgentMissMatch = errors.New("task assigned to different agent")
|
||||
|
||||
// ErrTaskExpired indicates a running task exceeded its lease/deadline and was resubmitted.
|
||||
ErrTaskExpired = errors.New("queue: task expired")
|
||||
)
|
||||
|
||||
// InfoT provides runtime information.
|
||||
|
||||
Reference in New Issue
Block a user