Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose worker forking as a host function #1151

Open
vigoo opened this issue Dec 6, 2024 · 0 comments
Open

Expose worker forking as a host function #1151

vigoo opened this issue Dec 6, 2024 · 0 comments
Assignees
Milestone

Comments

@vigoo
Copy link
Contributor

vigoo commented Dec 6, 2024

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/[email protected] 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.
@vigoo vigoo added this to the Golem 1.2 milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants