Skip to content

WorkingPool unexpected behaviour when workers are on different node #1134

@akbashev

Description

@akbashev

Description
WorkingPool unexpected behaviour when workers are on different node

Steps to reproduce
https://github.com/akbashev/WorkerPoolTest

Two nodes:

  • Master
  • Worker
  1. Join nodes and wait to be up.
  2. Spawn master with working pool on Master node.
  3. Spawn workers on Worker node.

If you run an example and submit some work—WorkingPool will terminate all workers in selectWorker() function, seems like actor is none here:

if let worker = self.workers[selectedWorkerID]?.actor {

Expected behavior
Pool is routing job to workers, e.g. will log:

2023-07-20T07:36:38+0200 info worker : cluster/node=sact://[email protected]:1111 [WorkingPoolTest] Done check for /user/Worker-d

Environment
MacOS 14.0 Beta (23A5286i), Xcode 15.0 Beta 4 (15A5195m), Swift 5.9

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