Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-2340

SQLalchemy pessimistic connection handling not working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.9.0
    • Fix Version/s: None
    • Component/s: scheduler
    • Labels:
      None

      Description

      Our scheduler keeps crashing, about once a day.  It seems to be triggered by a failure to connect to the postgresql database, but then it doesn't recover and crashes the scheduler over and over.

      The scheduler runs in a container in our environment, so after several container restarts, docker gives up and the container stays down.

      Airflow should be able to recover from a connection failure without blowing up the container altogether.  Perhaps some exponential backoff is needed?

       

      See attached log from the scheduler.

        Attachments

        1. airflow_traceback.txt
          142 kB
          John Arnold
        2. webserver.txt
          22 kB
          John Arnold

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                johnarnold John Arnold
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: