Shopify / pyoozie

Library for querying and scheduling with Apache Oozie
https://py-oozie.readthedocs.io
MIT License
11 stars 12 forks source link

Add job_coordinator_rerun #60

Closed angelini closed 6 years ago

angelini commented 6 years ago

Added job_coordinator_rerun which allows us to run the coord-rerun action on a coordinator action. Necessary for replicating the logic found here: https://github.com/Shopify/starscream/blob/master/starscream/scheduling/oozie/oozie_utils.py#L114-L125

I've also moved around and renamed jobs_update_coordinator since it didn't seem to follow the same pattern as the other functions.

AFAICT, functions starting with jobs_* hit the /jobs endpoint whereas functions starting with job_* hit the /job endpoint. Also the action name is typically the suffix of the function name.

angelini commented 6 years ago

Added the fix to check the coordinator status and tests to check all possible states.

angelini commented 6 years ago

I'll also need to bump the version number because of the breaking change

angelini commented 6 years ago

Tested against a live Oozie instance