growth-astro / growth-too-marshal

GROWTH Target of Opportunity Marshal
MIT License
13 stars 12 forks source link

Check return status of ZTF queue submission for errors #131

Open ebellm opened 4 years ago

ebellm commented 4 years ago

Currently there is no checking for failure when queues are submitted. We have seen several cases when the scheduler could not be reached and the TOO submitter did not realize it.

More generally, it would be useful to be able to return more nuanced error messages (e.g., when TOOs are being duplicated or have conflicting windows).

The ZTF queue submission already raises on errors, so I think this just requires a UI change in views.py.

ebellm commented 3 years ago

It would also be helpful to raise error codes for the submit_manual page, for the same reasons.