Session restore for serverless jobs in Databricks
Restore Python variables and Spark session from a serverless job run into a new interactive notebook to debug a failure or explore results.
O que mudou
Use cases
Imagine you ran a long serverless job that failed after forty minutes or you need to inspect results without rerunning the entire workflow. With this feature, you can open a snapshot of the previous job state directly inside a new interactive notebook.
- Debug job failures without full re-execution.
- Explore Python variables and Spark session state from past runs.
- Create isolated notebook copies based on run states.
How to use
To restore state from a job run:
- View the job run details and open the notebook view of the run.
- Click Clone into new notebook or Debug in new notebook on a failed run.
- Wait for Databricks to create a new notebook in your home folder with the restored Python variables and Spark session.
What happens in this process:
- Databricks creates a new notebook named
Job Run of <notebook name> at <timestamp> (Run <run ID>)in your home folder. - The environment rebuilds variables and the session from the automatically captured snapshot.
- You edit the restored copy without modifying the original notebook or job.
Limitations and requirements
- This feature is in Public Preview.
- Only the run-as user can restore a run's state, and only for notebook tasks.
- Applies to runs using serverless compute with environment version 5 or higher.
- State is captured automatically when a run fails, runs 30 minutes or longer (execution time excluding compute wait time), is cancelled, or times out.
- Snapshots are retained for 7 days.
- The restored notebook must stay attached to serverless compute.
- serverless
- jobs
- notebooks
- spark
- python
- debugging
Session restore for serverless jobs is in Public Preview
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- DatabricksGA
Repositórios de pacotes em nível de workspace para Databricks Apps
Administradores de workspace podem configurar repositórios padrão de pacotes Python e npm para Databricks Apps.
databricks apps · workspace settings - DatabricksGA
Redimensione partições de stateful streaming sem perder o checkpoint no Databricks
Agora é possível alterar o número de partições de shuffle em queries Structured Streaming e pipelines Lakeflow sem descartar o estado do checkpoint.
structured streaming · lakeflow - DatabricksAtualização
Google Gemini 4 Argon disponível no Unity Gateway do Databricks
O modelo multimodal Google Gemini 4 Argon já pode ser acessado via Foundation Model APIs e Unity Gateway.
unity catalog · foundation model apis