04-05-2022 08:42 AM
I have a library that waits until the job goes in the "TERMINATED" / "SKIPPED" state before continuing. It pools the JOB API.
Unfortunately, I'm experiencing cases where the job is terminated on the GUI but the API still keeps saying "RUNNING".
There is another option to wait until the job goes in not running the state?
05-18-2022 04:17 AM
Sometimes it happens, sometimes it does not. The api is:
/api/2.1/jobs/runs/list
Assuming INTERNAL_ERROR as TERMINATED state seems to be the a good workaround.
This is my solution so far...
if life_cycle_state.upper() not in ("TERMINATED", "SKIPPED", "INTERNAL_ERROR"):
05-17-2022 11:11 AM
Hi @Alessio Palma,
Do you have any logs that could help us to narrow down the root cause? Please share any logs you might have.
05-18-2022 03:02 AM
@Alessio Palma could you please provide the API that you are using? Also share some sample output and logs that would help us with some information.
05-18-2022 04:17 AM
Sometimes it happens, sometimes it does not. The api is:
/api/2.1/jobs/runs/list
Assuming INTERNAL_ERROR as TERMINATED state seems to be the a good workaround.
This is my solution so far...
if life_cycle_state.upper() not in ("TERMINATED", "SKIPPED", "INTERNAL_ERROR"):
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.