You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2018/08/29 20:24:37 UTC

[09/48] incubator-airflow-site git commit: 1.10.0 with Updated Api Reference

http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/concepts.html
----------------------------------------------------------------------
diff --git a/concepts.html b/concepts.html
index 3b9d4a3..58f47df 100644
--- a/concepts.html
+++ b/concepts.html
@@ -24,27 +24,19 @@
 
   
 
-  
-  
-    <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
-  
-
-  
-
-  
-        <link rel="index" title="Index"
-              href="genindex.html"/>
-        <link rel="search" title="Search" href="search.html"/>
-    <link rel="top" title="Airflow Documentation" href="index.html"/>
-        <link rel="next" title="Data Profiling" href="profiling.html"/>
-        <link rel="prev" title="UI / Screenshots" href="ui.html"/> 
+  <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
+  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
+    <link rel="index" title="Index" href="genindex.html" />
+    <link rel="search" title="Search" href="search.html" />
+    <link rel="next" title="Data Profiling" href="profiling.html" />
+    <link rel="prev" title="UI / Screenshots" href="ui.html" /> 
 
   
   <script src="_static/js/modernizr.min.js"></script>
 
 </head>
 
-<body class="wy-body-for-nav" role="document">
+<body class="wy-body-for-nav">
 
    
   <div class="wy-grid-for-nav">
@@ -155,7 +147,7 @@
     <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
 
       
-      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
+      <nav class="wy-nav-top" aria-label="top navigation">
         
           <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
           <a href="index.html">Airflow</a>
@@ -163,9 +155,10 @@
       </nav>
 
 
-      
       <div class="wy-nav-content">
+        
         <div class="rst-content">
+        
           
 
 
@@ -215,7 +208,7 @@ workflows.</p>
 <h2>Core Ideas<a class="headerlink" href="#core-ideas" title="Permalink to this headline">¶</a></h2>
 <div class="section" id="dags">
 <h3>DAGs<a class="headerlink" href="#dags" title="Permalink to this headline">¶</a></h3>
-<p>In Airflow, a <code class="docutils literal"><span class="pre">DAG</span></code> – or a Directed Acyclic Graph – is a collection of all
+<p>In Airflow, a <code class="docutils literal notranslate"><span class="pre">DAG</span></code> – or a Directed Acyclic Graph – is a collection of all
 the tasks you want to run, organized in a way that reflects their relationships
 and dependencies.</p>
 <p>For example, a simple DAG could consist of three tasks: A, B, and C. It could
@@ -232,22 +225,22 @@ concerned with what its constituent tasks do; its job is to make sure that
 whatever they do happens at the right time, or in the right order, or with the
 right handling of any unexpected issues.</p>
 <p>DAGs are defined in standard Python files that are placed in Airflow’s
-<code class="docutils literal"><span class="pre">DAG_FOLDER</span></code>. Airflow will execute the code in each file to dynamically build
-the <code class="docutils literal"><span class="pre">DAG</span></code> objects. You can have as many DAGs as you want, each describing an
+<code class="docutils literal notranslate"><span class="pre">DAG_FOLDER</span></code>. Airflow will execute the code in each file to dynamically build
+the <code class="docutils literal notranslate"><span class="pre">DAG</span></code> objects. You can have as many DAGs as you want, each describing an
 arbitrary number of tasks. In general, each one should correspond to a single
 logical workflow.</p>
 <div class="admonition note">
 <p class="first admonition-title">Note</p>
 <p class="last">When searching for DAGs, Airflow will only consider files where the string
-“airflow” and “DAG” both appear in the contents of the <code class="docutils literal"><span class="pre">.py</span></code> file.</p>
+“airflow” and “DAG” both appear in the contents of the <code class="docutils literal notranslate"><span class="pre">.py</span></code> file.</p>
 </div>
 <div class="section" id="scope">
 <h4>Scope<a class="headerlink" href="#scope" title="Permalink to this headline">¶</a></h4>
-<p>Airflow will load any <code class="docutils literal"><span class="pre">DAG</span></code> object it can import from a DAGfile. Critically,
-that means the DAG must appear in <code class="docutils literal"><span class="pre">globals()</span></code>. Consider the following two
-DAGs. Only <code class="docutils literal"><span class="pre">dag_1</span></code> will be loaded; the other one only appears in a local
+<p>Airflow will load any <code class="docutils literal notranslate"><span class="pre">DAG</span></code> object it can import from a DAGfile. Critically,
+that means the DAG must appear in <code class="docutils literal notranslate"><span class="pre">globals()</span></code>. Consider the following two
+DAGs. Only <code class="docutils literal notranslate"><span class="pre">dag_1</span></code> will be loaded; the other one only appears in a local
 scope.</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">dag_1</span> <span class="o">=</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;this_dag_will_be_discovered&#39;</span><span class="p">)</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">dag_1</span> <span class="o">=</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;this_dag_will_be_discovered&#39;</span><span class="p">)</span>
 
 <span class="k">def</span> <span class="nf">my_function</span><span class="p">():</span>
     <span class="n">dag_2</span> <span class="o">=</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;but_this_dag_will_not&#39;</span><span class="p">)</span>
@@ -256,14 +249,14 @@ scope.</p>
 </pre></div>
 </div>
 <p>Sometimes this can be put to good use. For example, a common pattern with
-<code class="docutils literal"><span class="pre">SubDagOperator</span></code> is to define the subdag inside a function so that Airflow
+<code class="docutils literal notranslate"><span class="pre">SubDagOperator</span></code> is to define the subdag inside a function so that Airflow
 doesn’t try to load it as a standalone DAG.</p>
 </div>
 <div class="section" id="default-arguments">
 <h4>Default Arguments<a class="headerlink" href="#default-arguments" title="Permalink to this headline">¶</a></h4>
-<p>If a dictionary of <code class="docutils literal"><span class="pre">default_args</span></code> is passed to a DAG, it will apply them to
+<p>If a dictionary of <code class="docutils literal notranslate"><span class="pre">default_args</span></code> is passed to a DAG, it will apply them to
 any of its operators. This makes it easy to apply a common parameter to many operators without having to type it many times.</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">default_args</span> <span class="o">=</span> <span class="p">{</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">default_args</span> <span class="o">=</span> <span class="p">{</span>
     <span class="s1">&#39;start_date&#39;</span><span class="p">:</span> <span class="n">datetime</span><span class="p">(</span><span class="mi">2016</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">),</span>
     <span class="s1">&#39;owner&#39;</span><span class="p">:</span> <span class="s1">&#39;Airflow&#39;</span>
 <span class="p">}</span>
@@ -278,7 +271,7 @@ any of its operators. This makes it easy to apply a common parameter to many ope
 <h4>Context Manager<a class="headerlink" href="#context-manager" title="Permalink to this headline">¶</a></h4>
 <p><em>Added in Airflow 1.8</em></p>
 <p>DAGs can be used as context managers to automatically assign new operators to that DAG.</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="k">with</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;my_dag&#39;</span><span class="p">,</span> <span class="n">start_date</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2016</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span> <span class="k">as</span> <span class="n">dag</span><span class="p">:</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">with</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;my_dag&#39;</span><span class="p">,</span> <span class="n">start_date</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2016</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span> <span class="k">as</span> <span class="n">dag</span><span class="p">:</span>
     <span class="n">op</span> <span class="o">=</span> <span class="n">DummyOperator</span><span class="p">(</span><span class="s1">&#39;op&#39;</span><span class="p">)</span>
 
 <span class="n">op</span><span class="o">.</span><span class="n">dag</span> <span class="ow">is</span> <span class="n">dag</span> <span class="c1"># True</span>
@@ -287,8 +280,8 @@ any of its operators. This makes it easy to apply a common parameter to many ope
 </div>
 </div>
 <div class="section" id="operators">
-<h3>Operators<a class="headerlink" href="#operators" title="Permalink to this headline">¶</a></h3>
-<p>While DAGs describe <em>how</em> to run a workflow, <code class="docutils literal"><span class="pre">Operators</span></code> determine what
+<span id="concepts-operators"></span><h3>Operators<a class="headerlink" href="#operators" title="Permalink to this headline">¶</a></h3>
+<p>While DAGs describe <em>how</em> to run a workflow, <code class="docutils literal notranslate"><span class="pre">Operators</span></code> determine what
 actually gets done.</p>
 <p>An operator describes a single task in a workflow. Operators are usually (but
 not always) atomic, meaning they can stand on their own and don’t need to share
@@ -302,30 +295,31 @@ Airflow does have a feature for operator cross-communication called XCom that is
 described elsewhere in this document.</p>
 <p>Airflow provides operators for many common tasks, including:</p>
 <ul class="simple">
-<li><code class="docutils literal"><span class="pre">BashOperator</span></code> - executes a bash command</li>
-<li><code class="docutils literal"><span class="pre">PythonOperator</span></code> - calls an arbitrary Python function</li>
-<li><code class="docutils literal"><span class="pre">EmailOperator</span></code> - sends an email</li>
-<li><code class="docutils literal"><span class="pre">HTTPOperator</span></code> - sends an HTTP request</li>
-<li><code class="docutils literal"><span class="pre">MySqlOperator</span></code>, <code class="docutils literal"><span class="pre">SqliteOperator</span></code>, <code class="docutils literal"><span class="pre">PostgresOperator</span></code>, <code class="docutils literal"><span class="pre">MsSqlOperator</span></code>, <code class="docutils literal"><span class="pre">OracleOperator</span></code>, <code class="docutils literal"><span class="pre">JdbcOperator</span></code>, etc. - executes a SQL command</li>
-<li><code class="docutils literal"><span class="pre">Sensor</span></code> - waits for a certain time, file, database row, S3 key, etc…</li>
+<li><code class="docutils literal notranslate"><span class="pre">BashOperator</span></code> - executes a bash command</li>
+<li><code class="docutils literal notranslate"><span class="pre">PythonOperator</span></code> - calls an arbitrary Python function</li>
+<li><code class="docutils literal notranslate"><span class="pre">EmailOperator</span></code> - sends an email</li>
+<li><code class="docutils literal notranslate"><span class="pre">SimpleHttpOperator</span></code> - sends an HTTP request</li>
+<li><code class="docutils literal notranslate"><span class="pre">MySqlOperator</span></code>, <code class="docutils literal notranslate"><span class="pre">SqliteOperator</span></code>, <code class="docutils literal notranslate"><span class="pre">PostgresOperator</span></code>, <code class="docutils literal notranslate"><span class="pre">MsSqlOperator</span></code>, <code class="docutils literal notranslate"><span class="pre">OracleOperator</span></code>, <code class="docutils literal notranslate"><span class="pre">JdbcOperator</span></code>, etc. - executes a SQL command</li>
+<li><code class="docutils literal notranslate"><span class="pre">Sensor</span></code> - waits for a certain time, file, database row, S3 key, etc…</li>
 </ul>
 <p>In addition to these basic building blocks, there are many more specific
-operators: <code class="docutils literal"><span class="pre">DockerOperator</span></code>, <code class="docutils literal"><span class="pre">HiveOperator</span></code>, <code class="docutils literal"><span class="pre">S3FileTransferOperator</span></code>,
-<code class="docutils literal"><span class="pre">PrestoToMysqlOperator</span></code>, <code class="docutils literal"><span class="pre">SlackOperator</span></code>… you get the idea!</p>
-<p>The <code class="docutils literal"><span class="pre">airflow/contrib/</span></code> directory contains yet more operators built by the
+operators: <code class="docutils literal notranslate"><span class="pre">DockerOperator</span></code>, <code class="docutils literal notranslate"><span class="pre">HiveOperator</span></code>, <code class="docutils literal notranslate"><span class="pre">S3FileTransformOperator</span></code>,
+<code class="docutils literal notranslate"><span class="pre">PrestoToMysqlOperator</span></code>, <code class="docutils literal notranslate"><span class="pre">SlackOperator</span></code>… you get the idea!</p>
+<p>The <code class="docutils literal notranslate"><span class="pre">airflow/contrib/</span></code> directory contains yet more operators built by the
 community. These operators aren’t always as complete or well-tested as those in
 the main distribution, but allow users to more easily add new functionality to
 the platform.</p>
 <p>Operators are only loaded by Airflow if they are assigned to a DAG.</p>
+<p>See <a class="reference internal" href="howto/operator.html"><span class="doc">Using Operators</span></a> for how to use Airflow operators.</p>
 <div class="section" id="dag-assignment">
 <h4>DAG Assignment<a class="headerlink" href="#dag-assignment" title="Permalink to this headline">¶</a></h4>
 <p><em>Added in Airflow 1.8</em></p>
-<p>Operators do not have to be assigned to DAGs immediately (previously <code class="docutils literal"><span class="pre">dag</span></code> was
+<p>Operators do not have to be assigned to DAGs immediately (previously <code class="docutils literal notranslate"><span class="pre">dag</span></code> was
 a required argument). However, once an operator is assigned to a DAG, it can not
 be transferred or unassigned. DAG assignment can be done explicitly when the
 operator is created, through deferred assignment, or even inferred from other
 operators.</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">dag</span> <span class="o">=</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;my_dag&#39;</span><span class="p">,</span> <span class="n">start_date</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2016</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">dag</span> <span class="o">=</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;my_dag&#39;</span><span class="p">,</span> <span class="n">start_date</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2016</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span>
 
 <span class="c1"># sets the DAG explicitly</span>
 <span class="n">explicit_op</span> <span class="o">=</span> <span class="n">DummyOperator</span><span class="p">(</span><span class="n">task_id</span><span class="o">=</span><span class="s1">&#39;op1&#39;</span><span class="p">,</span> <span class="n">dag</span><span class="o">=</span><span class="n">dag</span><span class="p">)</span>
@@ -343,11 +337,11 @@ operators.</p>
 <div class="section" id="bitshift-composition">
 <h4>Bitshift Composition<a class="headerlink" href="#bitshift-composition" title="Permalink to this headline">¶</a></h4>
 <p><em>Added in Airflow 1.8</em></p>
-<p>Traditionally, operator relationships are set with the <code class="docutils literal"><span class="pre">set_upstream()</span></code> and
-<code class="docutils literal"><span class="pre">set_downstream()</span></code> methods. In Airflow 1.8, this can be done with the Python
-bitshift operators <code class="docutils literal"><span class="pre">&gt;&gt;</span></code> and <code class="docutils literal"><span class="pre">&lt;&lt;</span></code>. The following four statements are all
+<p>Traditionally, operator relationships are set with the <code class="docutils literal notranslate"><span class="pre">set_upstream()</span></code> and
+<code class="docutils literal notranslate"><span class="pre">set_downstream()</span></code> methods. In Airflow 1.8, this can be done with the Python
+bitshift operators <code class="docutils literal notranslate"><span class="pre">&gt;&gt;</span></code> and <code class="docutils literal notranslate"><span class="pre">&lt;&lt;</span></code>. The following four statements are all
 functionally equivalent:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">op1</span> <span class="o">&gt;&gt;</span> <span class="n">op2</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">op1</span> <span class="o">&gt;&gt;</span> <span class="n">op2</span>
 <span class="n">op1</span><span class="o">.</span><span class="n">set_downstream</span><span class="p">(</span><span class="n">op2</span><span class="p">)</span>
 
 <span class="n">op2</span> <span class="o">&lt;&lt;</span> <span class="n">op1</span>
@@ -355,30 +349,30 @@ functionally equivalent:</p>
 </pre></div>
 </div>
 <p>When using the bitshift to compose operators, the relationship is set in the
-direction that the bitshift operator points. For example, <code class="docutils literal"><span class="pre">op1</span> <span class="pre">&gt;&gt;</span> <span class="pre">op2</span></code> means
-that <code class="docutils literal"><span class="pre">op1</span></code> runs first and <code class="docutils literal"><span class="pre">op2</span></code> runs second. Multiple operators can be
+direction that the bitshift operator points. For example, <code class="docutils literal notranslate"><span class="pre">op1</span> <span class="pre">&gt;&gt;</span> <span class="pre">op2</span></code> means
+that <code class="docutils literal notranslate"><span class="pre">op1</span></code> runs first and <code class="docutils literal notranslate"><span class="pre">op2</span></code> runs second. Multiple operators can be
 composed – keep in mind the chain is executed left-to-right and the rightmost
 object is always returned. For example:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">op1</span> <span class="o">&gt;&gt;</span> <span class="n">op2</span> <span class="o">&gt;&gt;</span> <span class="n">op3</span> <span class="o">&lt;&lt;</span> <span class="n">op4</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">op1</span> <span class="o">&gt;&gt;</span> <span class="n">op2</span> <span class="o">&gt;&gt;</span> <span class="n">op3</span> <span class="o">&lt;&lt;</span> <span class="n">op4</span>
 </pre></div>
 </div>
 <p>is equivalent to:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">op1</span><span class="o">.</span><span class="n">set_downstream</span><span class="p">(</span><span class="n">op2</span><span class="p">)</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">op1</span><span class="o">.</span><span class="n">set_downstream</span><span class="p">(</span><span class="n">op2</span><span class="p">)</span>
 <span class="n">op2</span><span class="o">.</span><span class="n">set_downstream</span><span class="p">(</span><span class="n">op3</span><span class="p">)</span>
 <span class="n">op3</span><span class="o">.</span><span class="n">set_upstream</span><span class="p">(</span><span class="n">op4</span><span class="p">)</span>
 </pre></div>
 </div>
 <p>For convenience, the bitshift operators can also be used with DAGs. For example:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">dag</span> <span class="o">&gt;&gt;</span> <span class="n">op1</span> <span class="o">&gt;&gt;</span> <span class="n">op2</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">dag</span> <span class="o">&gt;&gt;</span> <span class="n">op1</span> <span class="o">&gt;&gt;</span> <span class="n">op2</span>
 </pre></div>
 </div>
 <p>is equivalent to:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">op1</span><span class="o">.</span><span class="n">dag</span> <span class="o">=</span> <span class="n">dag</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">op1</span><span class="o">.</span><span class="n">dag</span> <span class="o">=</span> <span class="n">dag</span>
 <span class="n">op1</span><span class="o">.</span><span class="n">set_downstream</span><span class="p">(</span><span class="n">op2</span><span class="p">)</span>
 </pre></div>
 </div>
 <p>We can put this all together to build a simple pipeline:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="k">with</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;my_dag&#39;</span><span class="p">,</span> <span class="n">start_date</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2016</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span> <span class="k">as</span> <span class="n">dag</span><span class="p">:</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">with</span> <span class="n">DAG</span><span class="p">(</span><span class="s1">&#39;my_dag&#39;</span><span class="p">,</span> <span class="n">start_date</span><span class="o">=</span><span class="n">datetime</span><span class="p">(</span><span class="mi">2016</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">))</span> <span class="k">as</span> <span class="n">dag</span><span class="p">:</span>
     <span class="p">(</span>
         <span class="n">DummyOperator</span><span class="p">(</span><span class="n">task_id</span><span class="o">=</span><span class="s1">&#39;dummy_1&#39;</span><span class="p">)</span>
         <span class="o">&gt;&gt;</span> <span class="n">BashOperator</span><span class="p">(</span>
@@ -417,7 +411,7 @@ be conceptualized like this:</p>
 <li>Task Instance: a task that 1) has been assigned to a DAG and 2) has a
 state associated with a specific run of the DAG</li>
 </ul>
-<p>By combining <code class="docutils literal"><span class="pre">DAGs</span></code> and <code class="docutils literal"><span class="pre">Operators</span></code> to create <code class="docutils literal"><span class="pre">TaskInstances</span></code>, you can
+<p>By combining <code class="docutils literal notranslate"><span class="pre">DAGs</span></code> and <code class="docutils literal notranslate"><span class="pre">Operators</span></code> to create <code class="docutils literal notranslate"><span class="pre">TaskInstances</span></code>, you can
 build complex workflows.</p>
 </div>
 </div>
@@ -431,7 +425,7 @@ cross-communication, conditional execution, and more.</p>
 <p>Hooks are interfaces to external platforms and databases like Hive, S3,
 MySQL, Postgres, HDFS, and Pig. Hooks implement a common interface when
 possible, and act as a building block for operators. They also use
-the <code class="docutils literal"><span class="pre">airflow.models.Connection</span></code> model to retrieve hostnames
+the <code class="docutils literal notranslate"><span class="pre">airflow.models.Connection</span></code> model to retrieve hostnames
 and authentication information. Hooks keep authentication code and
 information out of pipelines, centralized in the metadata database.</p>
 <p>Hooks are also very useful on their own to use in Python scripts,
@@ -443,11 +437,11 @@ like iPython or Jupyter Notebook.</p>
 <p>Some systems can get overwhelmed when too many processes hit them at the same
 time. Airflow pools can be used to <strong>limit the execution parallelism</strong> on
 arbitrary sets of tasks. The list of pools is managed in the UI
-(<code class="docutils literal"><span class="pre">Menu</span> <span class="pre">-&gt;</span> <span class="pre">Admin</span> <span class="pre">-&gt;</span> <span class="pre">Pools</span></code>) by giving the pools a name and assigning
+(<code class="docutils literal notranslate"><span class="pre">Menu</span> <span class="pre">-&gt;</span> <span class="pre">Admin</span> <span class="pre">-&gt;</span> <span class="pre">Pools</span></code>) by giving the pools a name and assigning
 it a number of worker slots. Tasks can then be associated with
-one of the existing pools by using the <code class="docutils literal"><span class="pre">pool</span></code> parameter when
+one of the existing pools by using the <code class="docutils literal notranslate"><span class="pre">pool</span></code> parameter when
 creating tasks (i.e., instantiating operators).</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="n">aggregate_db_message_job</span> <span class="o">=</span> <span class="n">BashOperator</span><span class="p">(</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">aggregate_db_message_job</span> <span class="o">=</span> <span class="n">BashOperator</span><span class="p">(</span>
     <span class="n">task_id</span><span class="o">=</span><span class="s1">&#39;aggregate_db_message_job&#39;</span><span class="p">,</span>
     <span class="n">execution_timeout</span><span class="o">=</span><span class="n">timedelta</span><span class="p">(</span><span class="n">hours</span><span class="o">=</span><span class="mi">3</span><span class="p">),</span>
     <span class="n">pool</span><span class="o">=</span><span class="s1">&#39;ep_data_pipeline_db_msg_agg&#39;</span><span class="p">,</span>
@@ -456,52 +450,61 @@ creating tasks (i.e., instantiating operators).</p>
 <span class="n">aggregate_db_message_job</span><span class="o">.</span><span class="n">set_upstream</span><span class="p">(</span><span class="n">wait_for_empty_queue</span><span class="p">)</span>
 </pre></div>
 </div>
-<p>The <code class="docutils literal"><span class="pre">pool</span></code> parameter can
-be used in conjunction with <code class="docutils literal"><span class="pre">priority_weight</span></code> to define priorities
+<p>The <code class="docutils literal notranslate"><span class="pre">pool</span></code> parameter can
+be used in conjunction with <code class="docutils literal notranslate"><span class="pre">priority_weight</span></code> to define priorities
 in the queue, and which tasks get executed first as slots open up in the
-pool. The default <code class="docutils literal"><span class="pre">priority_weight</span></code> is <code class="docutils literal"><span class="pre">1</span></code>, and can be bumped to any
+pool. The default <code class="docutils literal notranslate"><span class="pre">priority_weight</span></code> is <code class="docutils literal notranslate"><span class="pre">1</span></code>, and can be bumped to any
 number. When sorting the queue to evaluate which task should be executed
-next, we use the <code class="docutils literal"><span class="pre">priority_weight</span></code>, summed up with all of the
-<code class="docutils literal"><span class="pre">priority_weight</span></code> values from tasks downstream from this task. You can
+next, we use the <code class="docutils literal notranslate"><span class="pre">priority_weight</span></code>, summed up with all of the
+<code class="docutils literal notranslate"><span class="pre">priority_weight</span></code> values from tasks downstream from this task. You can
 use this to bump a specific important task and the whole path to that task
 gets prioritized accordingly.</p>
 <p>Tasks will be scheduled as usual while the slots fill up. Once capacity is
 reached, runnable tasks get queued and their state will show as such in the
 UI. As slots free up, queued tasks start running based on the
-<code class="docutils literal"><span class="pre">priority_weight</span></code> (of the task and its descendants).</p>
+<code class="docutils literal notranslate"><span class="pre">priority_weight</span></code> (of the task and its descendants).</p>
 <p>Note that by default tasks aren’t assigned to any pool and their
 execution parallelism is only limited to the executor’s setting.</p>
 </div>
 <div class="section" id="connections">
 <span id="concepts-connections"></span><h3>Connections<a class="headerlink" href="#connections" title="Permalink to this headline">¶</a></h3>
 <p>The connection information to external systems is stored in the Airflow
-metadata database and managed in the UI (<code class="docutils literal"><span class="pre">Menu</span> <span class="pre">-&gt;</span> <span class="pre">Admin</span> <span class="pre">-&gt;</span> <span class="pre">Connections</span></code>)
-A <code class="docutils literal"><span class="pre">conn_id</span></code> is defined there and hostname / login / password / schema
+metadata database and managed in the UI (<code class="docutils literal notranslate"><span class="pre">Menu</span> <span class="pre">-&gt;</span> <span class="pre">Admin</span> <span class="pre">-&gt;</span> <span class="pre">Connections</span></code>)
+A <code class="docutils literal notranslate"><span class="pre">conn_id</span></code> is defined there and hostname / login / password / schema
 information attached to it. Airflow pipelines can simply refer to the
-centrally managed <code class="docutils literal"><span class="pre">conn_id</span></code> without having to hard code any of this
+centrally managed <code class="docutils literal notranslate"><span class="pre">conn_id</span></code> without having to hard code any of this
 information anywhere.</p>
-<p>Many connections with the same <code class="docutils literal"><span class="pre">conn_id</span></code> can be defined and when that
-is the case, and when the <strong>hooks</strong> uses the <code class="docutils literal"><span class="pre">get_connection</span></code> method
-from <code class="docutils literal"><span class="pre">BaseHook</span></code>, Airflow will choose one connection randomly, allowing
+<p>Many connections with the same <code class="docutils literal notranslate"><span class="pre">conn_id</span></code> can be defined and when that
+is the case, and when the <strong>hooks</strong> uses the <code class="docutils literal notranslate"><span class="pre">get_connection</span></code> method
+from <code class="docutils literal notranslate"><span class="pre">BaseHook</span></code>, Airflow will choose one connection randomly, allowing
 for some basic load balancing and fault tolerance when used in conjunction
 with retries.</p>
-<p>Many hooks have a default <code class="docutils literal"><span class="pre">conn_id</span></code>, where operators using that hook do not
+<p>Airflow also has the ability to reference connections via environment
+variables from the operating system. But it only supports URI format. If you
+need to specify <code class="docutils literal notranslate"><span class="pre">extra</span></code> for your connection, please use web UI.</p>
+<p>If connections with the same <code class="docutils literal notranslate"><span class="pre">conn_id</span></code> are defined in both Airflow metadata
+database and environment variables, only the one in environment variables
+will be referenced by Airflow (for example, given <code class="docutils literal notranslate"><span class="pre">conn_id</span></code> <code class="docutils literal notranslate"><span class="pre">postgres_master</span></code>,
+Airflow will search for <code class="docutils literal notranslate"><span class="pre">AIRFLOW_CONN_POSTGRES_MASTER</span></code>
+in environment variables first and directly reference it if found,
+before it starts to search in metadata database).</p>
+<p>Many hooks have a default <code class="docutils literal notranslate"><span class="pre">conn_id</span></code>, where operators using that hook do not
 need to supply an explicit connection ID. For example, the default
-<code class="docutils literal"><span class="pre">conn_id</span></code> for the <a class="reference internal" href="code.html#airflow.hooks.postgres_hook.PostgresHook" title="airflow.hooks.postgres_hook.PostgresHook"><code class="xref py py-class docutils literal"><span class="pre">PostgresHook</span></code></a> is
-<code class="docutils literal"><span class="pre">postgres_default</span></code>.</p>
+<code class="docutils literal notranslate"><span class="pre">conn_id</span></code> for the <a class="reference internal" href="code.html#airflow.hooks.postgres_hook.PostgresHook" title="airflow.hooks.postgres_hook.PostgresHook"><code class="xref py py-class docutils literal notranslate"><span class="pre">PostgresHook</span></code></a> is
+<code class="docutils literal notranslate"><span class="pre">postgres_default</span></code>.</p>
 <p>See <a class="reference internal" href="howto/manage-connections.html"><span class="doc">Managing Connections</span></a> for how to create and manage connections.</p>
 </div>
 <div class="section" id="queues">
 <h3>Queues<a class="headerlink" href="#queues" title="Permalink to this headline">¶</a></h3>
 <p>When using the CeleryExecutor, the celery queues that tasks are sent to
-can be specified. <code class="docutils literal"><span class="pre">queue</span></code> is an attribute of BaseOperator, so any
+can be specified. <code class="docutils literal notranslate"><span class="pre">queue</span></code> is an attribute of BaseOperator, so any
 task can be assigned to any queue. The default queue for the environment
-is defined in the <code class="docutils literal"><span class="pre">airflow.cfg</span></code>’s <code class="docutils literal"><span class="pre">celery</span> <span class="pre">-&gt;</span> <span class="pre">default_queue</span></code>. This defines
+is defined in the <code class="docutils literal notranslate"><span class="pre">airflow.cfg</span></code>’s <code class="docutils literal notranslate"><span class="pre">celery</span> <span class="pre">-&gt;</span> <span class="pre">default_queue</span></code>. This defines
 the queue that tasks get assigned to when not specified, as well as which
 queue Airflow workers listen to when started.</p>
 <p>Workers can listen to one or multiple queues of tasks. When a worker is
-started (using the command <code class="docutils literal"><span class="pre">airflow</span> <span class="pre">worker</span></code>), a set of comma delimited
-queue names can be specified (e.g. <code class="docutils literal"><span class="pre">airflow</span> <span class="pre">worker</span> <span class="pre">-q</span> <span class="pre">spark</span></code>). This worker
+started (using the command <code class="docutils literal notranslate"><span class="pre">airflow</span> <span class="pre">worker</span></code>), a set of comma delimited
+queue names can be specified (e.g. <code class="docutils literal notranslate"><span class="pre">airflow</span> <span class="pre">worker</span> <span class="pre">-q</span> <span class="pre">spark</span></code>). This worker
 will then only pick up tasks wired to the specified queue(s).</p>
 <p>This can be useful if you need specialized workers, either from a
 resource perspective (for say very lightweight tasks where one worker
@@ -519,19 +522,19 @@ object that can be pickled can be used as an XCom value, so users should make
 sure to use objects of appropriate size.</p>
 <p>XComs can be “pushed” (sent) or “pulled” (received). When a task pushes an
 XCom, it makes it generally available to other tasks. Tasks can push XComs at
-any time by calling the <code class="docutils literal"><span class="pre">xcom_push()</span></code> method. In addition, if a task returns
-a value (either from its Operator’s <code class="docutils literal"><span class="pre">execute()</span></code> method, or from a
-PythonOperator’s <code class="docutils literal"><span class="pre">python_callable</span></code> function), then an XCom containing that
+any time by calling the <code class="docutils literal notranslate"><span class="pre">xcom_push()</span></code> method. In addition, if a task returns
+a value (either from its Operator’s <code class="docutils literal notranslate"><span class="pre">execute()</span></code> method, or from a
+PythonOperator’s <code class="docutils literal notranslate"><span class="pre">python_callable</span></code> function), then an XCom containing that
 value is automatically pushed.</p>
-<p>Tasks call <code class="docutils literal"><span class="pre">xcom_pull()</span></code> to retrieve XComs, optionally applying filters
-based on criteria like <code class="docutils literal"><span class="pre">key</span></code>, source <code class="docutils literal"><span class="pre">task_ids</span></code>, and source <code class="docutils literal"><span class="pre">dag_id</span></code>. By
-default, <code class="docutils literal"><span class="pre">xcom_pull()</span></code> filters for the keys that are automatically given to
+<p>Tasks call <code class="docutils literal notranslate"><span class="pre">xcom_pull()</span></code> to retrieve XComs, optionally applying filters
+based on criteria like <code class="docutils literal notranslate"><span class="pre">key</span></code>, source <code class="docutils literal notranslate"><span class="pre">task_ids</span></code>, and source <code class="docutils literal notranslate"><span class="pre">dag_id</span></code>. By
+default, <code class="docutils literal notranslate"><span class="pre">xcom_pull()</span></code> filters for the keys that are automatically given to
 XComs when they are pushed by being returned from execute functions (as
 opposed to XComs that are pushed manually).</p>
-<p>If <code class="docutils literal"><span class="pre">xcom_pull</span></code> is passed a single string for <code class="docutils literal"><span class="pre">task_ids</span></code>, then the most
-recent XCom value from that task is returned; if a list of <code class="docutils literal"><span class="pre">task_ids</span></code> is
+<p>If <code class="docutils literal notranslate"><span class="pre">xcom_pull</span></code> is passed a single string for <code class="docutils literal notranslate"><span class="pre">task_ids</span></code>, then the most
+recent XCom value from that task is returned; if a list of <code class="docutils literal notranslate"><span class="pre">task_ids</span></code> is
 passed, then a corresponding list of XCom values is returned.</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="c1"># inside a PythonOperator called &#39;pushing_task&#39;</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># inside a PythonOperator called &#39;pushing_task&#39;</span>
 <span class="k">def</span> <span class="nf">push_function</span><span class="p">():</span>
     <span class="k">return</span> <span class="n">value</span>
 
@@ -542,7 +545,7 @@ passed, then a corresponding list of XCom values is returned.</p>
 </div>
 <p>It is also possible to pull XCom directly in a template, here’s an example
 of what this may look like:</p>
-<div class="code sql highlight-default"><div class="highlight"><pre><span></span><span class="n">SELECT</span> <span class="o">*</span> <span class="n">FROM</span> <span class="p">{{</span> <span class="n">task_instance</span><span class="o">.</span><span class="n">xcom_pull</span><span class="p">(</span><span class="n">task_ids</span><span class="o">=</span><span class="s1">&#39;foo&#39;</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="s1">&#39;table_name&#39;</span><span class="p">)</span> <span class="p">}}</span>
+<div class="code sql highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">SELECT</span> <span class="o">*</span> <span class="n">FROM</span> <span class="p">{{</span> <span class="n">task_instance</span><span class="o">.</span><span class="n">xcom_pull</span><span class="p">(</span><span class="n">task_ids</span><span class="o">=</span><span class="s1">&#39;foo&#39;</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="s1">&#39;table_name&#39;</span><span class="p">)</span> <span class="p">}}</span>
 </pre></div>
 </div>
 <p>Note that XComs are similar to <a class="reference internal" href="#variables">Variables</a>, but are specifically designed
@@ -552,26 +555,26 @@ for inter-task communication rather than global settings.</p>
 <h3>Variables<a class="headerlink" href="#variables" title="Permalink to this headline">¶</a></h3>
 <p>Variables are a generic way to store and retrieve arbitrary content or
 settings as a simple key value store within Airflow. Variables can be
-listed, created, updated and deleted from the UI (<code class="docutils literal"><span class="pre">Admin</span> <span class="pre">-&gt;</span> <span class="pre">Variables</span></code>),
+listed, created, updated and deleted from the UI (<code class="docutils literal notranslate"><span class="pre">Admin</span> <span class="pre">-&gt;</span> <span class="pre">Variables</span></code>),
 code or CLI. In addition, json settings files can be bulk uploaded through
 the UI. While your pipeline code definition and most of your constants
 and variables should be defined in code and stored in source control,
 it can be useful to have some variables or configuration items
 accessible and modifiable through the UI.</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">airflow.models</span> <span class="k">import</span> <span class="n">Variable</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">airflow.models</span> <span class="k">import</span> <span class="n">Variable</span>
 <span class="n">foo</span> <span class="o">=</span> <span class="n">Variable</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;foo&quot;</span><span class="p">)</span>
 <span class="n">bar</span> <span class="o">=</span> <span class="n">Variable</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;bar&quot;</span><span class="p">,</span> <span class="n">deserialize_json</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
 </pre></div>
 </div>
-<p>The second call assumes <code class="docutils literal"><span class="pre">json</span></code> content and will be deserialized into
-<code class="docutils literal"><span class="pre">bar</span></code>. Note that <code class="docutils literal"><span class="pre">Variable</span></code> is a sqlalchemy model and can be used
+<p>The second call assumes <code class="docutils literal notranslate"><span class="pre">json</span></code> content and will be deserialized into
+<code class="docutils literal notranslate"><span class="pre">bar</span></code>. Note that <code class="docutils literal notranslate"><span class="pre">Variable</span></code> is a sqlalchemy model and can be used
 as such.</p>
 <p>You can use a variable from a jinja template with the syntax :</p>
-<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="n">echo</span> <span class="p">{{</span> <span class="n">var</span><span class="o">.</span><span class="n">value</span><span class="o">.&lt;</span><span class="n">variable_name</span><span class="o">&gt;</span> <span class="p">}}</span>
+<div class="code bash highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">echo</span> <span class="p">{{</span> <span class="n">var</span><span class="o">.</span><span class="n">value</span><span class="o">.&lt;</span><span class="n">variable_name</span><span class="o">&gt;</span> <span class="p">}}</span>
 </pre></div>
 </div>
 <p>or if you need to deserialize a json object from the variable :</p>
-<div class="code bash highlight-default"><div class="highlight"><pre><span></span><span class="n">echo</span> <span class="p">{{</span> <span class="n">var</span><span class="o">.</span><span class="n">json</span><span class="o">.&lt;</span><span class="n">variable_name</span><span class="o">&gt;</span> <span class="p">}}</span>
+<div class="code bash highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">echo</span> <span class="p">{{</span> <span class="n">var</span><span class="o">.</span><span class="n">json</span><span class="o">.&lt;</span><span class="n">variable_name</span><span class="o">&gt;</span> <span class="p">}}</span>
 </pre></div>
 </div>
 </div>
@@ -580,17 +583,17 @@ as such.</p>
 <p>Sometimes you need a workflow to branch, or only go down a certain path
 based on an arbitrary condition which is typically related to something
 that happened in an upstream task. One way to do this is by using the
-<code class="docutils literal"><span class="pre">BranchPythonOperator</span></code>.</p>
-<p>The <code class="docutils literal"><span class="pre">BranchPythonOperator</span></code> is much like the PythonOperator except that it
+<code class="docutils literal notranslate"><span class="pre">BranchPythonOperator</span></code>.</p>
+<p>The <code class="docutils literal notranslate"><span class="pre">BranchPythonOperator</span></code> is much like the PythonOperator except that it
 expects a python_callable that returns a task_id. The task_id returned
 is followed, and all of the other paths are skipped.
 The task_id returned by the Python function has to be referencing a task
 directly downstream from the BranchPythonOperator task.</p>
-<p>Note that using tasks with <code class="docutils literal"><span class="pre">depends_on_past=True</span></code> downstream from
-<code class="docutils literal"><span class="pre">BranchPythonOperator</span></code> is logically unsound as <code class="docutils literal"><span class="pre">skipped</span></code> status
+<p>Note that using tasks with <code class="docutils literal notranslate"><span class="pre">depends_on_past=True</span></code> downstream from
+<code class="docutils literal notranslate"><span class="pre">BranchPythonOperator</span></code> is logically unsound as <code class="docutils literal notranslate"><span class="pre">skipped</span></code> status
 will invariably lead to block tasks that depend on their past successes.
-<code class="docutils literal"><span class="pre">skipped</span></code> states propagates where all directly upstream tasks are
-<code class="docutils literal"><span class="pre">skipped</span></code>.</p>
+<code class="docutils literal notranslate"><span class="pre">skipped</span></code> states propagates where all directly upstream tasks are
+<code class="docutils literal notranslate"><span class="pre">skipped</span></code>.</p>
 <p>If you want to skip some tasks, keep in mind that you can’t have an empty
 path, if so make a dummy task.</p>
 <p>like this, the dummy task “branch_false” is skipped</p>
@@ -608,13 +611,13 @@ that table. Once the checks all pass the partition is moved into the production
 table.</p>
 <p>As another example, consider the following DAG:</p>
 <img alt="_images/subdag_before.png" src="_images/subdag_before.png" />
-<p>We can combine all of the parallel <code class="docutils literal"><span class="pre">task-*</span></code> operators into a single SubDAG,
+<p>We can combine all of the parallel <code class="docutils literal notranslate"><span class="pre">task-*</span></code> operators into a single SubDAG,
 so that the resulting DAG resembles the following:</p>
 <img alt="_images/subdag_after.png" src="_images/subdag_after.png" />
 <p>Note that SubDAG operators should contain a factory method that returns a DAG
 object. This will prevent the SubDAG from being treated like a separate DAG in
 the main UI. For example:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="c1">#dags/subdag.py</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#dags/subdag.py</span>
 <span class="kn">from</span> <span class="nn">airflow.models</span> <span class="k">import</span> <span class="n">DAG</span>
 <span class="kn">from</span> <span class="nn">airflow.operators.dummy_operator</span> <span class="k">import</span> <span class="n">DummyOperator</span>
 
@@ -636,7 +639,7 @@ the main UI. For example:</p>
 </pre></div>
 </div>
 <p>This SubDAG can then be referenced in your main DAG file:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="c1"># main_dag.py</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># main_dag.py</span>
 <span class="kn">from</span> <span class="nn">datetime</span> <span class="k">import</span> <span class="n">datetime</span><span class="p">,</span> <span class="n">timedelta</span>
 <span class="kn">from</span> <span class="nn">airflow.models</span> <span class="k">import</span> <span class="n">DAG</span>
 <span class="kn">from</span> <span class="nn">airflow.operators.subdag_operator</span> <span class="k">import</span> <span class="n">SubDagOperator</span>
@@ -665,17 +668,17 @@ the tasks contained within the SubDAG:</p>
 <img alt="_images/subdag_zoom.png" src="_images/subdag_zoom.png" />
 <p>Some other tips when using SubDAGs:</p>
 <ul class="simple">
-<li>by convention, a SubDAG’s <code class="docutils literal"><span class="pre">dag_id</span></code> should be prefixed by its parent and
-a dot. As in <code class="docutils literal"><span class="pre">parent.child</span></code></li>
+<li>by convention, a SubDAG’s <code class="docutils literal notranslate"><span class="pre">dag_id</span></code> should be prefixed by its parent and
+a dot. As in <code class="docutils literal notranslate"><span class="pre">parent.child</span></code></li>
 <li>share arguments between the main DAG and the SubDAG by passing arguments to
 the SubDAG operator (as demonstrated above)</li>
 <li>SubDAGs must have a schedule and be enabled. If the SubDAG’s schedule is
-set to <code class="docutils literal"><span class="pre">None</span></code> or <code class="docutils literal"><span class="pre">&#64;once</span></code>, the SubDAG will succeed without having done
+set to <code class="docutils literal notranslate"><span class="pre">None</span></code> or <code class="docutils literal notranslate"><span class="pre">&#64;once</span></code>, the SubDAG will succeed without having done
 anything</li>
 <li>clearing a SubDagOperator also clears the state of the tasks within</li>
 <li>marking success on a SubDagOperator does not affect the state of the tasks
 within</li>
-<li>refrain from using <code class="docutils literal"><span class="pre">depends_on_past=True</span></code> in tasks within the SubDAG as
+<li>refrain from using <code class="docutils literal notranslate"><span class="pre">depends_on_past=True</span></code> in tasks within the SubDAG as
 this can be confusing</li>
 <li>it is possible to specify an executor for the SubDAG. It is common to use
 the SequentialExecutor if you want to run the SubDAG in-process and
@@ -683,15 +686,15 @@ effectively limit its parallelism to one. Using LocalExecutor can be
 problematic as it may over-subscribe your worker, running multiple tasks in
 a single slot</li>
 </ul>
-<p>See <code class="docutils literal"><span class="pre">airflow/example_dags</span></code> for a demonstration.</p>
+<p>See <code class="docutils literal notranslate"><span class="pre">airflow/example_dags</span></code> for a demonstration.</p>
 </div>
 <div class="section" id="slas">
 <h3>SLAs<a class="headerlink" href="#slas" title="Permalink to this headline">¶</a></h3>
 <p>Service Level Agreements, or time by which a task or DAG should have
-succeeded, can be set at a task level as a <code class="docutils literal"><span class="pre">timedelta</span></code>. If
+succeeded, can be set at a task level as a <code class="docutils literal notranslate"><span class="pre">timedelta</span></code>. If
 one or many instances have not succeeded by that time, an alert email is sent
 detailing the list of tasks that missed their SLA. The event is also recorded
-in the database and made available in the web UI under <code class="docutils literal"><span class="pre">Browse-&gt;Missed</span> <span class="pre">SLAs</span></code>
+in the database and made available in the web UI under <code class="docutils literal notranslate"><span class="pre">Browse-&gt;Missed</span> <span class="pre">SLAs</span></code>
 where events can be analyzed and documented.</p>
 </div>
 <div class="section" id="trigger-rules">
@@ -699,22 +702,22 @@ where events can be analyzed and documented.</p>
 <p>Though the normal workflow behavior is to trigger tasks when all their
 directly upstream tasks have succeeded, Airflow allows for more complex
 dependency settings.</p>
-<p>All operators have a <code class="docutils literal"><span class="pre">trigger_rule</span></code> argument which defines the rule by which
-the generated task get triggered. The default value for <code class="docutils literal"><span class="pre">trigger_rule</span></code> is
-<code class="docutils literal"><span class="pre">all_success</span></code> and can be defined as “trigger this task when all directly
+<p>All operators have a <code class="docutils literal notranslate"><span class="pre">trigger_rule</span></code> argument which defines the rule by which
+the generated task get triggered. The default value for <code class="docutils literal notranslate"><span class="pre">trigger_rule</span></code> is
+<code class="docutils literal notranslate"><span class="pre">all_success</span></code> and can be defined as “trigger this task when all directly
 upstream tasks have succeeded”. All other rules described here are based
 on direct parent tasks and are values that can be passed to any operator
 while creating tasks:</p>
 <ul class="simple">
-<li><code class="docutils literal"><span class="pre">all_success</span></code>: (default) all parents have succeeded</li>
-<li><code class="docutils literal"><span class="pre">all_failed</span></code>: all parents are in a <code class="docutils literal"><span class="pre">failed</span></code> or <code class="docutils literal"><span class="pre">upstream_failed</span></code> state</li>
-<li><code class="docutils literal"><span class="pre">all_done</span></code>: all parents are done with their execution</li>
-<li><code class="docutils literal"><span class="pre">one_failed</span></code>: fires as soon as at least one parent has failed, it does not wait for all parents to be done</li>
-<li><code class="docutils literal"><span class="pre">one_success</span></code>: fires as soon as at least one parent succeeds, it does not wait for all parents to be done</li>
-<li><code class="docutils literal"><span class="pre">dummy</span></code>: dependencies are just for show, trigger at will</li>
+<li><code class="docutils literal notranslate"><span class="pre">all_success</span></code>: (default) all parents have succeeded</li>
+<li><code class="docutils literal notranslate"><span class="pre">all_failed</span></code>: all parents are in a <code class="docutils literal notranslate"><span class="pre">failed</span></code> or <code class="docutils literal notranslate"><span class="pre">upstream_failed</span></code> state</li>
+<li><code class="docutils literal notranslate"><span class="pre">all_done</span></code>: all parents are done with their execution</li>
+<li><code class="docutils literal notranslate"><span class="pre">one_failed</span></code>: fires as soon as at least one parent has failed, it does not wait for all parents to be done</li>
+<li><code class="docutils literal notranslate"><span class="pre">one_success</span></code>: fires as soon as at least one parent succeeds, it does not wait for all parents to be done</li>
+<li><code class="docutils literal notranslate"><span class="pre">dummy</span></code>: dependencies are just for show, trigger at will</li>
 </ul>
-<p>Note that these can be used in conjunction with <code class="docutils literal"><span class="pre">depends_on_past</span></code> (boolean)
-that, when set to <code class="docutils literal"><span class="pre">True</span></code>, keeps a task from getting triggered if the
+<p>Note that these can be used in conjunction with <code class="docutils literal notranslate"><span class="pre">depends_on_past</span></code> (boolean)
+that, when set to <code class="docutils literal notranslate"><span class="pre">True</span></code>, keeps a task from getting triggered if the
 previous schedule for the task hasn’t succeeded.</p>
 </div>
 <div class="section" id="latest-run-only">
@@ -724,23 +727,23 @@ particular date/time range. Some workflows, however, perform tasks that
 are independent of run time but need to be run on a schedule, much like a
 standard cron job. In these cases, backfills or running jobs missed during
 a pause just wastes CPU cycles.</p>
-<p>For situations like this, you can use the <code class="docutils literal"><span class="pre">LatestOnlyOperator</span></code> to skip
+<p>For situations like this, you can use the <code class="docutils literal notranslate"><span class="pre">LatestOnlyOperator</span></code> to skip
 tasks that are not being run during the most recent scheduled run for a
-DAG. The <code class="docutils literal"><span class="pre">LatestOnlyOperator</span></code> skips all immediate downstream tasks, and
-itself, if the time right now is not between its <code class="docutils literal"><span class="pre">execution_time</span></code> and the
-next scheduled <code class="docutils literal"><span class="pre">execution_time</span></code>.</p>
+DAG. The <code class="docutils literal notranslate"><span class="pre">LatestOnlyOperator</span></code> skips all immediate downstream tasks, and
+itself, if the time right now is not between its <code class="docutils literal notranslate"><span class="pre">execution_time</span></code> and the
+next scheduled <code class="docutils literal notranslate"><span class="pre">execution_time</span></code>.</p>
 <p>One must be aware of the interaction between skipped tasks and trigger
-rules. Skipped tasks will cascade through trigger rules <code class="docutils literal"><span class="pre">all_success</span></code>
-and <code class="docutils literal"><span class="pre">all_failed</span></code> but not <code class="docutils literal"><span class="pre">all_done</span></code>, <code class="docutils literal"><span class="pre">one_failed</span></code>, <code class="docutils literal"><span class="pre">one_success</span></code>,
-and <code class="docutils literal"><span class="pre">dummy</span></code>. If you would like to use the <code class="docutils literal"><span class="pre">LatestOnlyOperator</span></code> with
+rules. Skipped tasks will cascade through trigger rules <code class="docutils literal notranslate"><span class="pre">all_success</span></code>
+and <code class="docutils literal notranslate"><span class="pre">all_failed</span></code> but not <code class="docutils literal notranslate"><span class="pre">all_done</span></code>, <code class="docutils literal notranslate"><span class="pre">one_failed</span></code>, <code class="docutils literal notranslate"><span class="pre">one_success</span></code>,
+and <code class="docutils literal notranslate"><span class="pre">dummy</span></code>. If you would like to use the <code class="docutils literal notranslate"><span class="pre">LatestOnlyOperator</span></code> with
 trigger rules that do not cascade skips, you will need to ensure that the
-<code class="docutils literal"><span class="pre">LatestOnlyOperator</span></code> is <strong>directly</strong> upstream of the task you would like
+<code class="docutils literal notranslate"><span class="pre">LatestOnlyOperator</span></code> is <strong>directly</strong> upstream of the task you would like
 to skip.</p>
 <p>It is possible, through use of trigger rules to mix tasks that should run
 in the typical date/time dependent mode and those using the
-<code class="docutils literal"><span class="pre">LatestOnlyOperator</span></code>.</p>
+<code class="docutils literal notranslate"><span class="pre">LatestOnlyOperator</span></code>.</p>
 <p>For example, consider the following dag:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="c1">#dags/latest_only_with_trigger.py</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#dags/latest_only_with_trigger.py</span>
 <span class="kn">import</span> <span class="nn">datetime</span> <span class="k">as</span> <span class="nn">dt</span>
 
 <span class="kn">from</span> <span class="nn">airflow.models</span> <span class="k">import</span> <span class="n">DAG</span>
@@ -770,16 +773,16 @@ in the typical date/time dependent mode and those using the
 <span class="n">task4</span><span class="o">.</span><span class="n">set_upstream</span><span class="p">([</span><span class="n">task1</span><span class="p">,</span> <span class="n">task2</span><span class="p">])</span>
 </pre></div>
 </div>
-<p>In the case of this dag, the <code class="docutils literal"><span class="pre">latest_only</span></code> task will show up as skipped
-for all runs except the latest run. <code class="docutils literal"><span class="pre">task1</span></code> is directly downstream of
-<code class="docutils literal"><span class="pre">latest_only</span></code> and will also skip for all runs except the latest.
-<code class="docutils literal"><span class="pre">task2</span></code> is entirely independent of <code class="docutils literal"><span class="pre">latest_only</span></code> and will run in all
-scheduled periods. <code class="docutils literal"><span class="pre">task3</span></code> is downstream of <code class="docutils literal"><span class="pre">task1</span></code> and <code class="docutils literal"><span class="pre">task2</span></code> and
-because of the default <code class="docutils literal"><span class="pre">trigger_rule</span></code> being <code class="docutils literal"><span class="pre">all_success</span></code> will receive
-a cascaded skip from <code class="docutils literal"><span class="pre">task1</span></code>. <code class="docutils literal"><span class="pre">task4</span></code> is downstream of <code class="docutils literal"><span class="pre">task1</span></code> and
-<code class="docutils literal"><span class="pre">task2</span></code> but since its <code class="docutils literal"><span class="pre">trigger_rule</span></code> is set to <code class="docutils literal"><span class="pre">all_done</span></code> it will
-trigger as soon as <code class="docutils literal"><span class="pre">task1</span></code> has been skipped (a valid completion state)
-and <code class="docutils literal"><span class="pre">task2</span></code> has succeeded.</p>
+<p>In the case of this dag, the <code class="docutils literal notranslate"><span class="pre">latest_only</span></code> task will show up as skipped
+for all runs except the latest run. <code class="docutils literal notranslate"><span class="pre">task1</span></code> is directly downstream of
+<code class="docutils literal notranslate"><span class="pre">latest_only</span></code> and will also skip for all runs except the latest.
+<code class="docutils literal notranslate"><span class="pre">task2</span></code> is entirely independent of <code class="docutils literal notranslate"><span class="pre">latest_only</span></code> and will run in all
+scheduled periods. <code class="docutils literal notranslate"><span class="pre">task3</span></code> is downstream of <code class="docutils literal notranslate"><span class="pre">task1</span></code> and <code class="docutils literal notranslate"><span class="pre">task2</span></code> and
+because of the default <code class="docutils literal notranslate"><span class="pre">trigger_rule</span></code> being <code class="docutils literal notranslate"><span class="pre">all_success</span></code> will receive
+a cascaded skip from <code class="docutils literal notranslate"><span class="pre">task1</span></code>. <code class="docutils literal notranslate"><span class="pre">task4</span></code> is downstream of <code class="docutils literal notranslate"><span class="pre">task1</span></code> and
+<code class="docutils literal notranslate"><span class="pre">task2</span></code> but since its <code class="docutils literal notranslate"><span class="pre">trigger_rule</span></code> is set to <code class="docutils literal notranslate"><span class="pre">all_done</span></code> it will
+trigger as soon as <code class="docutils literal notranslate"><span class="pre">task1</span></code> has been skipped (a valid completion state)
+and <code class="docutils literal notranslate"><span class="pre">task2</span></code> has succeeded.</p>
 <img alt="_images/latest_only_with_trigger.png" src="_images/latest_only_with_trigger.png" />
 </div>
 <div class="section" id="zombies-undeads">
@@ -787,13 +790,13 @@ and <code class="docutils literal"><span class="pre">task2</span></code> has suc
 <p>Task instances die all the time, usually as part of their normal life cycle,
 but sometimes unexpectedly.</p>
 <p>Zombie tasks are characterized by the absence
-of an heartbeat (emitted by the job periodically) and a <code class="docutils literal"><span class="pre">running</span></code> status
+of an heartbeat (emitted by the job periodically) and a <code class="docutils literal notranslate"><span class="pre">running</span></code> status
 in the database. They can occur when a worker node can’t reach the database,
 when Airflow processes are killed externally, or when a node gets rebooted
 for instance. Zombie killing is performed periodically by the scheduler’s
 process.</p>
 <p>Undead processes are characterized by the existence of a process and a matching
-heartbeat, but Airflow isn’t aware of this task as <code class="docutils literal"><span class="pre">running</span></code> in the database.
+heartbeat, but Airflow isn’t aware of this task as <code class="docutils literal notranslate"><span class="pre">running</span></code> in the database.
 This mismatch typically occurs as the state of the database is altered,
 most likely by deleting rows in the “Task Instances” view in the UI.
 Tasks are instructed to verify their state as part of the heartbeat routine,
@@ -802,15 +805,15 @@ state.</p>
 </div>
 <div class="section" id="cluster-policy">
 <h3>Cluster Policy<a class="headerlink" href="#cluster-policy" title="Permalink to this headline">¶</a></h3>
-<p>Your local airflow settings file can define a <code class="docutils literal"><span class="pre">policy</span></code> function that
+<p>Your local airflow settings file can define a <code class="docutils literal notranslate"><span class="pre">policy</span></code> function that
 has the ability to mutate task attributes based on other task or DAG
 attributes. It receives a single argument as a reference to task objects,
 and is expected to alter its attributes.</p>
 <p>For example, this function could apply a specific queue property when
 using a specific operator, or enforce a task timeout policy, making sure
 that no tasks run for more than 48 hours. Here’s an example of what this
-may look like inside your <code class="docutils literal"><span class="pre">airflow_settings.py</span></code>:</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">policy</span><span class="p">(</span><span class="n">task</span><span class="p">):</span>
+may look like inside your <code class="docutils literal notranslate"><span class="pre">airflow_settings.py</span></code>:</p>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">policy</span><span class="p">(</span><span class="n">task</span><span class="p">):</span>
     <span class="k">if</span> <span class="n">task</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__name__</span> <span class="o">==</span> <span class="s1">&#39;HivePartitionSensor&#39;</span><span class="p">:</span>
         <span class="n">task</span><span class="o">.</span><span class="n">queue</span> <span class="o">=</span> <span class="s2">&quot;sensor_queue&quot;</span>
     <span class="k">if</span> <span class="n">task</span><span class="o">.</span><span class="n">timeout</span> <span class="o">&gt;</span> <span class="n">timedelta</span><span class="p">(</span><span class="n">hours</span><span class="o">=</span><span class="mi">48</span><span class="p">):</span>
@@ -856,7 +859,7 @@ content if defined:</p>
 <p>This is especially useful if your tasks are built dynamically from
 configuration files, it allows you to expose the configuration that led
 to the related tasks in Airflow.</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="sd">&quot;&quot;&quot;</span>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="sd">&quot;&quot;&quot;</span>
 <span class="sd">### My great DAG</span>
 <span class="sd">&quot;&quot;&quot;</span>
 
@@ -879,8 +882,8 @@ to the related tasks in Airflow.</p>
 <a class="reference external" href="http://jinja.pocoo.org/docs/dev/">Jinja Templating</a> and this can be a
 powerful tool to use in combination with macros (see the <a class="reference internal" href="code.html#macros"><span class="std std-ref">Macros</span></a> section).</p>
 <p>For example, say you want to pass the execution date as an environment variable
-to a Bash script using the <code class="docutils literal"><span class="pre">BashOperator</span></code>.</p>
-<div class="code python highlight-default"><div class="highlight"><pre><span></span><span class="c1"># The execution date as YYYY-MM-DD</span>
+to a Bash script using the <code class="docutils literal notranslate"><span class="pre">BashOperator</span></code>.</p>
+<div class="code python highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># The execution date as YYYY-MM-DD</span>
 <span class="n">date</span> <span class="o">=</span> <span class="s2">&quot;{{ ds }}&quot;</span>
 <span class="n">t</span> <span class="o">=</span> <span class="n">BashOperator</span><span class="p">(</span>
     <span class="n">task_id</span><span class="o">=</span><span class="s1">&#39;test_env&#39;</span><span class="p">,</span>
@@ -889,9 +892,9 @@ to a Bash script using the <code class="docutils literal"><span class="pre">Bash
     <span class="n">env</span><span class="o">=</span><span class="p">{</span><span class="s1">&#39;EXECUTION_DATE&#39;</span><span class="p">:</span> <span class="n">date</span><span class="p">})</span>
 </pre></div>
 </div>
-<p>Here, <code class="docutils literal"><span class="pre">{{</span> <span class="pre">ds</span> <span class="pre">}}</span></code> is a macro, and because the <code class="docutils literal"><span class="pre">env</span></code> parameter of the
-<code class="docutils literal"><span class="pre">BashOperator</span></code> is templated with Jinja, the execution date will be available
-as an environment variable named <code class="docutils literal"><span class="pre">EXECUTION_DATE</span></code> in your Bash script.</p>
+<p>Here, <code class="docutils literal notranslate"><span class="pre">{{</span> <span class="pre">ds</span> <span class="pre">}}</span></code> is a macro, and because the <code class="docutils literal notranslate"><span class="pre">env</span></code> parameter of the
+<code class="docutils literal notranslate"><span class="pre">BashOperator</span></code> is templated with Jinja, the execution date will be available
+as an environment variable named <code class="docutils literal notranslate"><span class="pre">EXECUTION_DATE</span></code> in your Bash script.</p>
 <p>You can use Jinja templating with every parameter that is marked as “templated”
 in the documentation. Template substitution occurs just before the pre_execute
 function of your operator is called.</p>
@@ -899,7 +902,7 @@ function of your operator is called.</p>
 </div>
 <div class="section" id="packaged-dags">
 <h2>Packaged dags<a class="headerlink" href="#packaged-dags" title="Permalink to this headline">¶</a></h2>
-<p>While often you will specify dags in a single <code class="docutils literal"><span class="pre">.py</span></code> file it might sometimes
+<p>While often you will specify dags in a single <code class="docutils literal notranslate"><span class="pre">.py</span></code> file it might sometimes
 be required to combine dag and its dependencies. For example, you might want
 to combine several dags together to version them together or you might want
 to manage them together or you might need an extra module that is not available
@@ -907,18 +910,18 @@ by default on the system you are running airflow on. To allow this you can creat
 a zip file that contains the dag(s) in the root of the zip file and have the extra
 modules unpacked in directories.</p>
 <p>For instance you can create a zip file that looks like this:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>my_dag1.py
+<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>my_dag1.py
 my_dag2.py
 package1/__init__.py
 package1/functions.py
 </pre></div>
 </div>
-<p>Airflow will scan the zip file and try to load <code class="docutils literal"><span class="pre">my_dag1.py</span></code> and <code class="docutils literal"><span class="pre">my_dag2.py</span></code>.
+<p>Airflow will scan the zip file and try to load <code class="docutils literal notranslate"><span class="pre">my_dag1.py</span></code> and <code class="docutils literal notranslate"><span class="pre">my_dag2.py</span></code>.
 It will not go into subdirectories as these are considered to be potential
 packages.</p>
 <p>In case you would like to add module dependencies to your DAG you basically would
 do the same, but then it is more to use a virtualenv and pip.</p>
-<div class="highlight-bash"><div class="highlight"><pre><span></span>virtualenv zip_dag
+<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>virtualenv zip_dag
 <span class="nb">source</span> zip_dag/bin/activate
 
 mkdir zip_dag_contents
@@ -951,9 +954,7 @@ pure python modules can be packaged.</p>
 
 
            </div>
-           <div class="articleComments">
-            
-           </div>
+           
           </div>
           <footer>
   
@@ -974,7 +975,7 @@ pure python modules can be packaged.</p>
 
     </p>
   </div>
-  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 
+  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 
 
 </footer>
 
@@ -993,6 +994,7 @@ pure python modules can be packaged.</p>
         var DOCUMENTATION_OPTIONS = {
             URL_ROOT:'./',
             VERSION:'',
+            LANGUAGE:'None',
             COLLAPSE_INDEX:false,
             FILE_SUFFIX:'.html',
             HAS_SOURCE:  true,
@@ -1005,19 +1007,13 @@ pure python modules can be packaged.</p>
 
   
 
-  
-  
-    <script type="text/javascript" src="_static/js/theme.js"></script>
-  
+  <script type="text/javascript" src="_static/js/theme.js"></script>
 
-  
-  
   <script type="text/javascript">
       jQuery(function () {
-          SphinxRtdTheme.StickyNav.enable();
+          SphinxRtdTheme.Navigation.enable(true);
       });
-  </script>
-   
+  </script> 
 
 </body>
 </html>
\ No newline at end of file