NubladoSpawnError#

exception rubin.nublado.client.NubladoSpawnError(message, log, user=None, *, context=None, failed_at=None, started_at=None)#

Bases: NubladoError

Nublado failed to spawn the requested JupyterLab instance.

Parameters:
  • message (str) – Exception message.

  • log (list[str]) – Log messages from the Nublado spawn.

  • user (str | None, default: None) – User Nublado client was acting on behalf of.

  • context (CodeContext | None, default: None) – The code context for this operation, if any.

  • failed_at (datetime | None, default: None) – When the operation failed. Omit to use the current time.

  • started_at (datetime | None, default: None) – When the operation that failed began.

context#

The code context for this operation, if any.

failed_at#

When the operation failed.

log#

Log messages from the Nublado spawn.

started_at#

When the operation that ended in an exception started.

user#

User Nublado client was acting on behalf of.

to_sentry()#

Return an object with tags and contexts to add to Sentry events.

Returns:

Annotated Sentry object.

Return type:

SentryEventInfo

to_slack()#

Format the error as a Slack Block Kit message.

Returns:

Formatted Slack message.

Return type:

SlackMessage