I'm triggering an Oozie workflow as a shell command executed via Python's subprocess module.
Popen("oozie job -config workflow.properties -run".split())
The execution of the remainder of my program depends on success or failure of various actions in this workflow. When triggering the Oozie job interactively, I get back a Oozie jobID which I can use to monitor the success/failure status of the job using
oozie job -info <jobId>
I want to access the status of various action nodes programmatically, through Python. Is there a way to accomplish this?
What I've tried so far:
An Oozie MapReduce action places a _SUCCESS file in the output folder upon successful job completion. I polled for the presence of this file every 2 seconds. However, I'm wondering if there is a direct API/Shell call to get status of action nodes.
Related(ish) questions This post talks about the reverse problem: that of triggering Python jobs through Oozie and doesn't answer my question.