[AIRFLOW-XXX] Fix DebugExecutor docs (#6830)

This commit is contained in:
Tomek 2019-12-16 23:45:01 +01:00 коммит произвёл Kaxil Naik
Родитель 11262c6d42
Коммит 465c1f879d
2 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -300,15 +300,15 @@ for debugging purposes. Using this executor you can run and debug DAGs from your
**IDE setup steps:**
1. Add ``main`` block at the end of your DAG file to make it runnable:
1. Add ``main`` block at the end of your DAG file to make it runnable.
It will run a backfill job:
.. code-block:: python
.. code-block:: python
if __name__ == '__main__':
dag.clear(reset_dag_runs=True)
dag.run()
if __name__ == '__main__':
dag.clear(reset_dag_runs=True)
dag.run()
When you add those lines, running a DAG file will run a backfill job.
2. Setup ``AIRFLOW__CORE__EXECUTOR=DebugExecutor`` in run configuration of your IDE. In
this step you should also setup all environment variables required by your DAG.

Просмотреть файл

@ -33,15 +33,15 @@ all other running or scheduled tasks fail immediately. To enable this option set
**IDE setup steps:**
1. Add ``main`` block at the end of your DAG file to make it runnable:
1. Add ``main`` block at the end of your DAG file to make it runnable.
It will run a backfill job:
.. code-block:: python
.. code-block:: python
if __name__ == '__main__':
dag.clear(reset_dag_runs=True)
dag.run()
if __name__ == '__main__':
dag.clear(reset_dag_runs=True)
dag.run()
When you add those lines, running a DAG file will run a backfill job.
2. Setup ``AIRFLOW__CORE__EXECUTOR=DebugExecutor`` in run configuration of your IDE. In
this step you should also setup all environment variables required by your DAG.