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

sqlalchemy.exc.OperationalError happens when sql is too long, which cause scheduler processor will be exited

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.10.5
    • Fix Version/s: None
    • Component/s: scheduler
    • Labels:
      None

      Description

      code

      https://github.com/apache/airflow/blob/v1-10-stable/airflow/jobs/scheduler_job.py#L1060-L1069

      Error description

      if there is too many queued_tasks, sqlalchemy.exc.OperationalError will occur. details are as follow:

      <

      sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2006, "MySQL server has gone away (BrokenPipeError(32, 'Broken pipe'))")
      [SQL: SELECT ...]

      (Background on this error at: http://sqlalche.me/e/e3q8)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chiven chen xianxin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: