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

Add Support for Post-interrupt Hooks #1186

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

piiteraq
Copy link
Contributor

@piiteraq piiteraq commented Jul 5, 2023

  • Added support for post-interrupts hooks to e.g. allow remote jobs kicked off from a Jupyter notebook cell to be interrupted when the cell itself is interrupted
  • An example was added to 'api-jupyter.md' to demonstrate how to add a post-interrupt hook in PREDEFS code of an Almond based kernel for stopping Spark jobs

Copy link
Member

@alexarchambault alexarchambault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @piiteraq! it'd be nice to have an integration test for it, a bit like this one. I'm merging nonetheless, as that kind of test can be cumbersome to write…

@alexarchambault alexarchambault merged commit 4ccc348 into almond-sh:main Jul 7, 2023
piiteraq pushed a commit to piiteraq/almond that referenced this pull request Jul 26, 2023
- This is a rework of almond-sh#1186
  to make the post-interrupt hook feature work as intended
piiteraq pushed a commit to piiteraq/almond that referenced this pull request Jul 26, 2023
- This is a rework of almond-sh#1186
  to make the post-interrupt hook feature work as intended
piiteraq pushed a commit to piiteraq/almond that referenced this pull request Jul 26, 2023
- This is a rework of almond-sh#1186
  to make the post-interrupt hook feature work as intended
piiteraq pushed a commit to piiteraq/almond that referenced this pull request Jul 26, 2023
- This is a rework of almond-sh#1186
  to make the post-interrupt hook feature work as intended
piiteraq pushed a commit to piiteraq/almond that referenced this pull request Jul 26, 2023
- This is a rework of almond-sh#1186
  to make the post-interrupt hook feature work as intended
piiteraq pushed a commit to piiteraq/almond that referenced this pull request Aug 13, 2023
- This is a rework of almond-sh#1186
  to make the post-interrupt hook feature work as intended
alexarchambault added a commit that referenced this pull request Aug 21, 2023
* Add Fixes for Post-Interrupt Hook Feature

- This is a rework of #1186
  to make the post-interrupt hook feature work as intended

* Renaming afterInterruptHook -> postInterruptHook

* Remove setInstance / getInstanceOpt stuff

By passing the JupyterApi to Execute methods when needed

* Log from JupyterApiImpl

* Clean-up log messages

* NIT Format

* fixup

---------

Co-authored-by: Peter Christensen <pchristensen2@apple.com>
Co-authored-by: Alexandre Archambault <alexandre.archambault@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants