CancelledError
with task function holding a reference to a Future
#7746
Labels
CancelledError
with task function holding a reference to a Future
#7746
On 2023.3.2, when a task function has a closure over a
Future
object, getting the Future's result intermittently raises aCancelledError
when the task runs on a worker. On 2023.3.1 and earlier, this works fine.git bisect
points to #7580 as the change at which this stopped working.Minimal reproducer:
Prior to #7580:
After:
Interestingly, with
threads_per_worker=1
, the problem doesn't happen. Clearly, it has something to do with the tasks running in parallel—either the deserialization of the task function, or the execution.The traceback points to here:
distributed/distributed/client.py
Line 2209 in dac5923
The text was updated successfully, but these errors were encountered: