Exit hl-calc cleanly if postgres isn't available

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • None
    • Affects Version/s: None
    • Component/s: Server
    • None

      If postgres isn't available and the hl tool starts up early (e.g. during boot), it will fail with an error

      2016-02-18 11:14:17.573190500 sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: the database system is starting up

      We should catch these errors somehow and nicely exit without showing a stacktrace. daemontools will start us up again after a few seconds and we can try again

            Assignee:
            Alastair Porter
            Reporter:
            Alastair Porter
            Archiver:
            julian45

              Created:
              Updated:
              Resolved:
              Archived:

                Version Package