azure-databricks-client icon indicating copy to clipboard operation
azure-databricks-client copied to clipboard

Incorrect (RUNNING) LifeCycleState when Job run is in PENDING state

Open sks1311 opened this issue 1 year ago • 3 comments

I am trying to use JobsApi to check if the job run is pending but the "RunsList" method is returning LifeCycleState = "RUNNING" when the job is showing "PENDING" on the databricks UI.

sks1311 avatar Mar 29 '24 18:03 sks1311

Can you inspect what does the REST API return in this case? If the REST API returns "RUNNING" as opposed to "PENDING", then either the REST API is wrong or the UI is wrong, and I can open a support case for Databricks to fix. If the API returns "PENDING" but the .NET code returns "RUNNING" (which I don't think is the case), then I can investigate into it.

memoryz avatar Apr 15 '24 04:04 memoryz

I verified the REST API returns PENDING, the data bricks UI shows PENDING but .NET code returns "RUNNING" which is weird, by looking at code I don't see anything obvious that will show RUNNING for PENDING.

sks1311 avatar Apr 23 '24 15:04 sks1311

I cannot reproduce this issue. Just to be clear, we're talking about Run.State.LifeCycleState property, right? Can you paste the full returned JSON if possible?

memoryz avatar Jun 19 '24 01:06 memoryz