andormarkus commented on issue #13824:
URL: https://github.com/apache/airflow/issues/13824#issuecomment-1058386842


   @rafidka, I think you have misunderstood point 4. in my setup guide. I meant 
leave the default environment variables as is just change 
`AIRFLOW__CORE__LOAD_EXAMPLES` from 'true' -> 'false' and extend it new ones. I 
have edited that comment.
   
   
    `simple_dag.py` is  
[same](https://github.com/apache/airflow/issues/13824#issuecomment-1012838195) 
as before.
   
   ```python
   """Sample DAG."""
   
   import time
   from datetime import datetime, timedelta
   
   from airflow import DAG
   from airflow.operators.python import PythonOperator
   
   default_args = {
       "owner": "airflow",
       "depends_on_past": False,
       "start_date": datetime(2020, 1, 1),
       "email": ["[email protected]"],
       "email_on_failure": False,
       "email_on_retry": False,
       "retries": 1,
       "retry_delay": timedelta(minutes=5),
   }
   
   
   def sleep() -> bool:
       """Sleep.
   
       Returns:
           bool: True
       """
       time.sleep(20)
       return True
   
   
   with DAG("simple_dag_1", default_args=default_args, schedule_interval="* * * 
* *", catchup=False) as dag:
       t1 = PythonOperator(task_id="sleep", python_callable=sleep)
   
   ```
     
   
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to