fix(queue): force agent cancellation on lease expiration (#5823)

This commit is contained in:
Henrik Huitti
2025-12-06 10:18:58 +02:00
committed by GitHub
parent b872171e12
commit b8efdfafa4
3 changed files with 40 additions and 0 deletions

View File

@@ -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.