You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tracking of tasks at their backends (pro_tes/tasks/track_task_progress.py) gives up too early, and then leaves tasks that may still run:
The first poll is not retried: any error, such as a single 503, sets the state SYSTEM_ERROR.
In the polling loop, the failure counter is never reset after a successful poll, so failures add up over the whole life of a task. Spread over days, 100 transient errors (polling.attempts) are enough, and so is an outage of the backend or of the identity provider of about 5 minutes.
SYSTEM_ERROR is final and not cancelable, so the task keeps running at its backend while proTES neither tracks nor cancels it.
docs/configuration.md describes the setting as "after attempts failed requests", which hides this.
Found in the pre-release review of v0.3.0 (finding 4).
Proposed change
Retry the first poll like the others.
Count consecutive failed polls, and reset the count after a successful poll.
After attempts consecutive failures, don't set a final state: set UNKNOWN (cancelable once fix: store and cancel new tasks at backends #275 is done), keep polling with backoff up to a configurable maximum interval, and store the backend's state again once it answers.
Activity