Incorrect (RUNNING) LifeCycleState when Job run is in PENDING state
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.
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.
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.
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?