Skip to content

Expose worker forking as a host function #1151

@vigoo

Description

@vigoo

We want to expose #1138 as a host function too - so it is possible to create a fork from a worker.
This is aligned with our goal of not introducing any external APIs without providing the same functionality as a host function too.

The steps to implement this:

  • Define the new function in golem-wit, in the golem:api/host@1.2.0 interface
  • It should be a function taking the same three parameters as the gRPC API
  • Implement it in worker executor base using the worker proxy (as the forked worker may not be living in the same executor that initiated the fork); see how the hot update host function is implemented for reference.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions