You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/12/09 16:58:13 UTC

[GitHub] [airflow] ashb commented on a change in pull request #6740: [AIRFLOW-6181] Add InProcessExecutor

ashb commented on a change in pull request #6740: [AIRFLOW-6181] Add InProcessExecutor
URL: https://github.com/apache/airflow/pull/6740#discussion_r355566405
 
 

 ##########
 File path: TESTING.rst
 ##########
 @@ -276,3 +276,32 @@ your local sources to the ``/opt/airflow`` location of the sources within the co
 .. image:: images/source_code_mapping_ide.png
     :align: center
     :alt: Source code mapping
+
+
+DAG testing
+===========
+
+To ease and speed up process of developing DAGs you can use ``InProcessExecutor`` - a single
+process executor for debugging purposes. Using this executor you can run and debug DAGs
+from your IDE.
+
+**IDE setup steps:**
+
+1. Add ``main`` block at the end of your DAG file to make it runnable:
+
+  .. code-block:: python
+
+    if __name__ == '__main__':
+      dag.clear(reset_dag_runs=True)
+      dag.run()
 
 Review comment:
   Isn't there already a `dag.cli()` or something?

----------------------------------------------------------------
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