Skip to content

Instantly share code, notes, and snippets.

@ajs124

ajs124/bla.py Secret

Created February 25, 2021 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajs124/affb47c364cefa2b91e84fa750c89977 to your computer and use it in GitHub Desktop.
Save ajs124/affb47c364cefa2b91e84fa750c89977 to your computer and use it in GitHub Desktop.
with open(hydra_json) as f:
hydra_data = json.load(f)
if hydra_data['event'] != 'buildFinished':
print('Ignoring event {}'.format(hydra_data['event']))
sys.exit(0)
build_id = hydra_data['build']
jobset = hydra_data['jobset']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment