[Webservice] Restructure database to give more meaningful success/failure information
Compare changes
- Thomas Kluyver authored
+ 231
− 107
@@ -3,6 +3,7 @@ import argparse
@@ -84,116 +85,229 @@ def slurm_job_status(jobid):
The canonical name according to the Karabo naming convention for the first part of a device ID is domain. I wouldn't have hard feelings against Karabo ID if not for the unfortunate similarity to device ID.
So I would propose either "karabo-domain" or something Karabo-agnostic like "detector-installation" or just "installation".
FYI, I am aware that so far we have karabo_id (notebooks), detector_identifier(CALCAT APIs), and domain in the mentioned documentation.
Will we really benefit from adding a new name?
Edited by Karim AhmedGood point. @schmidtp how does
detector_identifier
sound to you?
@@ -218,7 +332,17 @@ def main(argv=None):
For supervisord to manage the process in a (slightly) nicer way, it may be worth adding something here to catch sigkill/interrupt and explicitly handle it. Maybe adding something like:
With a bit at the end of
main
that does something like:Good point, see what you think of the implementation I've just committed.