-
Notifications
You must be signed in to change notification settings - Fork 84
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
Backend hook function for shutting down/cleaning up backend #719
Milestone
Comments
HenrikBengtsson
added a commit
that referenced
this issue
May 29, 2024
HenrikBengtsson
added a commit
that referenced
this issue
May 29, 2024
…, if nothing is specified [#719]
HenrikBengtsson
added a commit
that referenced
this issue
May 29, 2024
HenrikBengtsson
added a commit
that referenced
this issue
May 30, 2024
HenrikBengtsson
added a commit
that referenced
this issue
May 30, 2024
Completed. Added R option |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, changing plan as in:
will trigger a call to an internal
plan_cleanup()
function:As we can see, this function will stop any cluster futures. That is, it works for
plan(cluster, ...)
andplan(multisession, ...)
and derivatives, but that's it.We could add support for custom cleanup "hook" functions so we can support shutdown of all backends. One approach could be to designate an special attribute for the "evaluator" function, e.g.
Then, we could do something like:
The text was updated successfully, but these errors were encountered: