Write status before awaits and after exception. Writing before awaits allows future runStatus calls to know that the job is pending, not just whatever status was previously in the db. Writing after exception is proper cleanup so we know that there was an error.
Write status before awaits and after exception.
Writing before awaits allows future runStatus calls to know that
the job is pending, not just whatever status was previously in the db.
Writing after exception is proper cleanup so we know that there was
an error.

mkeilman/sirepo,radiasoft/sirepo,mkeilman/sirepo,radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo,mkeilman/sirepo,mkeilman/sirepo