jupyter-server / enterprise_gateway

A lightweight, multi-tenant, scalable and secure gateway that enables Jupyter Notebooks to share resources across distributed clusters such as Apache Spark, Kubernetes and others.
https://jupyter-enterprise-gateway.readthedocs.io/en/latest/
Other
615 stars 221 forks source link

Update python interrupt test #1239

Closed kevin-bates closed 1 year ago

kevin-bates commented 1 year ago

The python interrupt tests (for all integrations on Yarn) started failing due to string length limits because it was building a string whose length got too long. Not sure why this just started failing CI but there must have been some kind of update to check that. This pull request makes the python interrupts more like the Scala and R interrupt tests where a sleep() call is getting interrupted.

(Note that the building of the long string was to generate CPU load for the PR at the time, which switched the launcher from a thread to a process since a kernel's operation could starve the ability for the thread to perform the interrupt. Given that we've demonstrated that, I feel it's okay to make these tests like the other two kernels.)