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

Spawning new python interpreter for every task slow

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.10.7
    • Component/s: executors, worker
    • Labels:
      None

      Description

      There are a number of places in the Executors and Task Runners where we spawn a whole new python interpreter.

      My profiling has shown that this is slow. Rather than running a fresh python interpreter which then has to re-load all of Airflow and its dependencies we should use os.fork when it is available/suitable which should speed up task running, espeically for short lived tasks.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ash Ash Berlin-Taylor
                Reporter:
                ash Ash Berlin-Taylor
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: