Adding futures into a Queue
disables resources
argument in submit
function.
#8860
Labels
Queue
disables resources
argument in submit
function.
#8860
This run script creates 8 workers and each worker has a different resource (work0, work1, ...).
The test script submits 3*8 tasks using resources argument to choose the worker.
We expect to have the same pid printed when the resource is the same and it is what we get as long as the 2 lines where the
Queue
object is used are commented.This is an example of the output, when the
Queue
object is not used :work2 is always on 124329, work6 always on 124349 and so on. It works fine!
But if we uncomment the 2 lines and we use the
Queue
object, theresources
argument seems ignored.An example of output when the
Queue
object is used:work0 is done on 126130, then on 126146 and the last on 126146 again, but 126146 is also used for work1 twice.
Environment:
I have the issue with distributed 2024.8.0 on debian 11, but it works fine with a much older version (2022.2.0 on debian 10).
The text was updated successfully, but these errors were encountered: