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
Worker restrictions when specified using the worker name can fail to be resolved if the named worker is restarted and allow_other_workers = False. I think this is because the worker_restrictions in TaskState records the output of Scheduler.coerce_address, which is most likely not the same when the worker is restarted. As a result, the worker restriction is never fulfilled even though the restarted worker keeps the same name. Is this the intended behaviour?
The output I get from the above example shows the scheduler and worker starting. The initial execution of thetest_func task does not complete before the worker is restarted, after which the program hangs because the worker restriction is never fulfilled. The output of the print statement shows that the worker restriction in the task state records the address of the initial worker.
Environment:
Dask version: 2024.2.0
Python version: 3.10
Operating System: Linux
Install method (conda, pip, source): pip
The text was updated successfully, but these errors were encountered:
Describe the issue:
Worker restrictions when specified using the worker name can fail to be resolved if the named worker is restarted and
allow_other_workers = False
. I think this is because theworker_restrictions
inTaskState
records the output ofScheduler.coerce_address
, which is most likely not the same when the worker is restarted. As a result, the worker restriction is never fulfilled even though the restarted worker keeps the same name. Is this the intended behaviour?Minimal Complete Verifiable Example:
The output I get from the above example shows the scheduler and worker starting. The initial execution of the
test_func
task does not complete before the worker is restarted, after which the program hangs because the worker restriction is never fulfilled. The output of the print statement shows that the worker restriction in the task state records the address of the initial worker.Environment:
The text was updated successfully, but these errors were encountered: