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 client submits a task without resource restrictions -> the task enters WorkerState.ready
The client cancels the task before it can start executing -> the task is forgotten, but its key is still in WorkerState.ready. This is normally ok thanks to
# It is possible for tasks to be released while still remaining on
# `ready`. The scheduler might have re-routed to a new worker and
# told this worker to release. If the task has "disappeared", just
# continue through the heap.
continue
The client resubmit the task, with the same key, this time with resource restrictions.
The task key is now both in WorkerState.ready and WorkerState.constrained.
Due to other tasks in the queue, the task reaches the top of WorkerState.ready before it reaches the top of WorkerState.constrained.
The task starts executing, completely bypassing resource restrictions. WorkerState.available_resources may become negative for as long as the task is running.
Proposed design
Reimplement ready and constrained as HeapSets. This also solves #6137.
The text was updated successfully, but these errors were encountered:
The client submits a task without resource restrictions -> the task enters
WorkerState.ready
The client cancels the task before it can start executing -> the task is forgotten, but its key is still in
WorkerState.ready
. This is normally ok thanks todistributed/distributed/worker_state_machine.py
Lines 1596 to 1604 in a05cc38
The client resubmit the task, with the same key, this time with resource restrictions.
The task key is now both in
WorkerState.ready
andWorkerState.constrained
.Due to other tasks in the queue, the task reaches the top of
WorkerState.ready
before it reaches the top ofWorkerState.constrained
.The task starts executing, completely bypassing resource restrictions.
WorkerState.available_resources
may become negative for as long as the task is running.Proposed design
Reimplement
ready
andconstrained
asHeapSet
s. This also solves #6137.The text was updated successfully, but these errors were encountered: