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

DM-46137: Support timeouts in notebook executions #99

Merged
merged 7 commits into from
Sep 12, 2024

Conversation

jonathansick
Copy link
Member

This adds a timeout field on the nbexec call to the JupyterLab server extension for notebook execution.

This sets a timeout on the nbexec call to the JupyterLab server
extension for notebook execution. It raises a NbexecTaskTimeout
exception in the arq worker, which should result in an errored state for
the notebook execution job. We might need to fine tune the exception
handling so that the result output in the API is useful.
@jonathansick jonathansick force-pushed the tickets/DM-46137 branch 2 times, most recently from 2019f23 to 3826ba8 Compare September 10, 2024 18:14
This modifies the result payload for a notebook execution job when the
job is complete.

- Add a new "error" field that reports an exception raised during the
  noteburst job, which explains why a job's "success" field is false.
  The field contains a NoteburstExecutionError model, which in turn
  contains an enum code for the error and a text message describing the
  error.

- Keep the existing "ipynb_error" field for reporting exceptions raised
  within the notebook itself. Noteburst's execution could still be
  considered successful even if the notebook itself raised an exception.
This will let a user know what the timeout setting was for the job,
which is especially helpful if the execution was related to the timeout.
@jonathansick jonathansick changed the title DM-46137 DM-46137: Support timeouts in notebook executions Sep 12, 2024
@jonathansick jonathansick marked this pull request as ready for review September 12, 2024 19:03
@jonathansick jonathansick merged commit 058689c into main Sep 12, 2024
4 checks passed
@jonathansick jonathansick deleted the tickets/DM-46137 branch September 12, 2024 19:03
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.

1 participant