<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JOB API KEEPS SAYING THE JOB IS RUNNING in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23659#M16378</link>
    <description>&lt;P&gt;Sometimes it happens, sometimes it does not. The api is:&lt;/P&gt;&lt;P&gt;/api/2.1/jobs/runs/list&lt;/P&gt;&lt;P&gt;Assuming INTERNAL_ERROR as TERMINATED state seems to be the a good workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my solution so far...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if life_cycle_state.upper() not in ("TERMINATED", "SKIPPED", "INTERNAL_ERROR"):&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 11:17:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-18T11:17:23Z</dc:date>
    <item>
      <title>JOB API KEEPS SAYING THE JOB IS RUNNING</title>
      <link>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23656#M16375</link>
      <description>&lt;P&gt;I have a library that waits until the job goes in the "TERMINATED" / "SKIPPED" state before continuing. It pools the JOB API.&lt;/P&gt;&lt;P&gt;Unfortunately, I'm experiencing cases where the job is terminated on the GUI but the API still keeps saying "RUNNING".&lt;/P&gt;&lt;P&gt;There is another option to wait until the job goes in not running the state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:42:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23656#M16375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-05T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: JOB API KEEPS SAYING THE JOB IS RUNNING</title>
      <link>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23657#M16376</link>
      <description>&lt;P&gt;Hi @Alessio Palma​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any logs that could help us to narrow down the root cause? Please share any logs you might have.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 18:11:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23657#M16376</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-05-17T18:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: JOB API KEEPS SAYING THE JOB IS RUNNING</title>
      <link>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23658#M16377</link>
      <description>&lt;P&gt;@Alessio Palma​&amp;nbsp;could you please provide the API that you are using? Also share some sample output and logs that would help us with some information.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 10:02:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23658#M16377</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-05-18T10:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: JOB API KEEPS SAYING THE JOB IS RUNNING</title>
      <link>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23659#M16378</link>
      <description>&lt;P&gt;Sometimes it happens, sometimes it does not. The api is:&lt;/P&gt;&lt;P&gt;/api/2.1/jobs/runs/list&lt;/P&gt;&lt;P&gt;Assuming INTERNAL_ERROR as TERMINATED state seems to be the a good workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my solution so far...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if life_cycle_state.upper() not in ("TERMINATED", "SKIPPED", "INTERNAL_ERROR"):&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 11:17:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/job-api-keeps-saying-the-job-is-running/m-p/23659#M16378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-18T11:17:23Z</dc:date>
    </item>
  </channel>
</rss>

