Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Let scheduler GRPC methods return before calling schedule #375

@robertnishihara

Description

@robertnishihara

The first time a worker calls "ReadyForNewTask", all of the remote functions will be added to a queue to be exported to the worker. Then schedule is called, which tries to export all of the remote functions to the worker. If the size of the worker's message queue is smaller than the number of exported remote functions, then this will freeze, and ReadyForNewTask will never return. The solution is to allow schedule to be called only after ReadyForNewTask has returned.

This problem can be easily exposed by changing the default size of the message queue in ipc.h to a small number like 5 and then running the tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions