Skip to content

Commit

Permalink
Update CONTRIBUTORS_QUICK_START.rst, TESTING.rst(apache#21140)
Browse files Browse the repository at this point in the history
  • Loading branch information
uplsh580 authored Feb 1, 2022
1 parent 093702e commit 2652c6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 2 additions & 8 deletions CONTRIBUTORS_QUICK_START.rst
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,10 @@ Setting up Debug
- Add a ``__main__`` block at the end of your DAG file to make it runnable. It will run a ``back_fill`` job:

.. code-block:: python
from airflow.utils.state import State
...
if __name__ == "__main__":
dag.clear(dag_run_state=State.NONE)
dag.clear()
dag.run()
- Add ``AIRFLOW__CORE__EXECUTOR=DebugExecutor`` to Environment variable of Run Configuration.
Expand Down Expand Up @@ -1354,13 +1351,10 @@ Setting up Debug
- Add a ``__main__`` block at the end of your DAG file to make it runnable. It will run a ``back_fill`` job:

.. code-block:: python
from airflow.utils.state import State
...
if __name__ == "__main__":
dag.clear(dag_run_state=State.NONE)
dag.clear()
dag.run()
- Add ``"AIRFLOW__CORE__EXECUTOR": "DebugExecutor"`` to the ``"env"`` field of Debug configuration.
Expand Down
4 changes: 1 addition & 3 deletions TESTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1308,9 +1308,7 @@ It will run a backfill job:
.. code-block:: python
if __name__ == "__main__":
from airflow.utils.state import State
dag.clear(dag_run_state=State.NONE)
dag.clear()
dag.run()
Expand Down

0 comments on commit 2652c6e

Please sign in to comment.