Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As far as I understand there is a json entry for each line which stores info, can one access this json entry somehow?

  • The JSON values are displayed in the ARP webpage automatically.  To access them programmatically.  Murali is working on a programmatic way of accessing these., use the kerberos endpoint 

    ws-kerb/batch_manager/ws/logbook/batches_status/<experiment_id>.
    For example, this gives the batch processing status for experiment id 302

    Code Block
    languagepy
    import requests
    from krtc import KerberosTicket
    from urllib.parse import urlparse
    ws_url = "https://pswww.slac.stanford.edu/ws-kerb/batch_manager/ws/logbook/batches_status/302"
    krbheaders = KerberosTicket("HTTP@" + urlparse(ws_url).hostname).getAuthHeaders()
    r = requests.get(ws_url, headers=krbheaders)
    print(r.json())