JupyterSpawnError#
- exception rubin.nublado.client.JupyterSpawnError(log, user, message=None, started_at=None, failed_at=None)#
Bases:
NubladoClientSlackExceptionThe Jupyter Lab pod failed to spawn.
- Parameters:
- classmethod from_exception(log, exc, user, started_at=None, failed_at=None)#
Convert from an arbitrary exception to a spawn error.
- Parameters:
log (
str) – Log of the spawn to this point.exc (
Exception) – Exception that terminated the spawn attempt.user (
str) – Username of the user spawning the lab.started_at (
datetime|None, default:None) – When the operation started.failed_at (
datetime|None, default:None) – When the operation failed (defaults to the current time).
- Returns:
Converted exception.
- Return type:
- to_sentry()#
Return an object with tags and contexts to add to Sentry events.
- Returns:
Annotated Sentry object.
- Return type:
- to_slack()#
Format the error as a Slack Block Kit message.
- Returns:
Formatted Slack message.
- Return type: