airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [airflow] potiuk commented on a change in pull request #6740: [AIRFLOW-6181] Add InProcessExecutor
Date Fri, 06 Dec 2019 09:15:59 GMT
potiuk commented on a change in pull request #6740: [AIRFLOW-6181] Add InProcessExecutor
URL: https://github.com/apache/airflow/pull/6740#discussion_r354729615
 
 

 ##########
 File path: docs/executor/inprocess.rst
 ##########
 @@ -0,0 +1,52 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+ ..   http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+InProcess Executor
+==================
+
+The ``InProcessExecutor`` is meant as a debug tool and can be used from IDE.
+It is a single process executor that queues :class:`~models.taskinstance.TaskInstance`
+and executes them by running ``_run_raw_task`` method.
+
+Due to it's nature the executor can be sued with SQL Lite database. When used
+with sensors the executor will change sensor mode to ``reschedule`` to do not
+block the execution of DAG.
+
+Additionally ``InProcessExecutor`` can be used in a fail-fast mode that will make
+DAG to fail after first failed task. To enable this option set ``AIRFLOW__DEBUG__FAIL_FAST=True``
+or adjust ``fail_fast`` option in your ``airflow.cfg``.
+
+**IDE setup steps:**
+
+1. Add main at the end of your DAG file to make it runnable:
 
 Review comment:
   ```suggestion
   1. Add `main` method at the end of your DAG file to make it runnable:
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message