Skip to content

Add script to check run in webservice DB

Thomas Kluyver requested to merge feat/check-websvc-db into master

Description

It's useful to be able to quickly see what the webservice thinks has happened for corrections on a given run. This script takes proposal and run number, queries the database and tries to present the output in a useful format.

How Has This Been Tested?

$ python3 check_run_status.py 3279 168
Request 1734 at 2023-04-01T21:39:42
- FXE_XAD_JF1M
  COMPLETED: 1021621 1021625 1021627 1021629 1021633 1021638
  FAILED: 1021622 1021624 1021631 1021634
- FXE_XAD_JF500K
  COMPLETED: 1021691 1021692 1021698 1021705 1021708 1021711 1021714
  FAILED: 1021694 1021696 1021702

Request 1735 at 2023-04-01T21:39:42
- FXE_XAD_JF1M
  COMPLETED: 1021623 1021626 1021628 1021630 1021635 1021636 1021637 1021639 1021640
  FAILED: 1021632
- FXE_XAD_JF500K
  COMPLETED: 1021693 1021695 1021700 1021706 1021709 1021712 1021715
  FAILED: 1021697 1021699 1021703

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the code style of this project.

Reviewers

@ahmedk @schmidtp

Merge request reports