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
demandé il y a un an201 vues
1 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a un an
profile picture
EXPERT
vérifié il y a 2 jours
  • 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

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions