Skip to content

Add view to quickly check and get details for aborted slots

Marco Clemencic requested to merge add-aborted-slots-view into master

To be used as in

>>> slot_id = "nightly/celery-test/72"
>>> requests.get("https://lhcb-couchdb.web.cern.ch/nightly-builds/_design/state/_view/aborted", params={"key": f'"{slot_id}"'}).json()["rows"][0]["value"]
{'user': 'clemenci', 'time': '2022-02-25 16:19:29.888325+00:00'}
>>> slot_id = "nightly/celery-test/73"
>>> requests.get("https://lhcb-couchdb.web.cern.ch/nightly-builds/_design/state/_view/aborted", params={"key": f'"{slot_id}"'}).json()["rows"][0]["value"]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: list index out of range

Merge request reports