cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Different result between manual and automated task run

Harispap
New Contributor
I have a notebook where I bring info about a previous task run metadata from the API ".... /jobs/runs/get". The response should be a dictionary that contains information such as task key, run if, run page URL etc. 
 
When I run the notebook as part of a scheduled ETL workflow the notebook failed with a key error that the 'result state' key was not found in the 'state' dictionary. However when I run it manually, the notebook didn't fail and the 'result state' key contained a valid value.
 
How is it possible to have different result between manual and automated task run?
Is there any case that the state of the job or tasks might have been different when the notebook was executed automatically compared to when I ran it manually. For example, the job might have completed and populated all the expected keys by the time I ran it manually.
1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Harispap

Yes, it’s possible to have different results between a manual and an automated task run. This could be due to a few reasons:

To debug this issue, you could log the API response in both the manual and automated runs to see if there are any differences. Also, ensure that your automated task is using the same version of the API as your manual task. If the issue persists, you might want to reach out to us for further assistance.

 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group