How to stop a EMR Notebook execution after a error in a cell

0

Hi there,

Do you know how to stop a notebook on cell error?

It seems that the normal behavior is to continue on error, but I want to stop execution after the first error or fail,

Maybe a notebook flag, or editor flag?

We are using emr run notebook api, and we think that one year before it used to stop on error cell but not anymore.

Thanks

rmis
feita há um ano201 visualizações
1 Resposta
0

Hello,

Thanks for writing on re:Post

The functionality you have explained here is available when using the PySpark Kernel within a Jupyter Notebook.

When raising an error within a cell, if that error is flagged in the run time, the notebook will not continue to run the following cells even when using the Run All Option.

When an error is met, the notebook will output the information of this error and will stop executing.

I hope the above information helped in addressing your concern

Thanks

AWS
ENGENHEIRO DE SUPORTE
respondido há um ano
profile picture
ESPECIALISTA
avaliado há 2 dias
  • Thanks! You're right, we don't have any problem with python3 kernel, just with pyspark.

    How do you flag them in runtime? Can you do that from emr start emr notebook api or step function start emr notebook execution?

    We raise exceptions inside cells and doesn't stop notebook executions,

    Thanks

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas