Skip to content

Actors on same worker cause deadlock #4224

@martindurant

Description

@martindurant

Consider

client = dask.distributed.Client()

class Minimal:
    
    def thetime(self):
        import time
        return time.time()

class UsesMinimal():
     
     def getthetime(self, ac):
         return ac.thetime().result()

The following works

ac = client.submit(Minimal, actor=True, workers=["127.0.0.1:61047"]).result()
ac2 = client.submit(UsesMinimal, actor=True, workers=['tcp://127.0.0.1:61046']).result()
ac2.getthetime(ac).result()

but if they are on the same worker

ac2 = client.submit(UsesMinimal, actor=True, workers=['tcp://127.0.0.1:61047']).result()
ac2.getthetime(ac).result()

... deadlock

  • Dask version: master (dask/distributed)
  • Python version: 3.7
  • Operating System: osx
  • Install method (conda, pip, source): source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions