Skip to content

8.x timeout bug #938

Closed
Closed
@mlucool

Description

@mlucool

When upgrading to 7.4.9 to 8.1.0, the timeout parameter no longer works with papermill + a custom KernelManager.

Example notebook, example_slow.ipynb:

from time import sleep
sleep(10)

Executing with papermill:

import papermill as pm
pm.execute_notebook("example_slow.ipynb", "example_slow.out.ipynb", timeout=1, kernel_manager_class="jupyter_client.manager.KernelManager")

With 7.4.9 this correctly raises CellTimeoutError. With 8.1.0 the notebook runs to completion (in 10 seconds). Oddly, if I don't use a custom manager class, it also errors correctly. I need a custom manager given #154 (comment).

Is this a bug in this package or should how timeout is used be changed in papermill?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions