barskern opened a new issue #19578:
URL: https://github.com/apache/airflow/issues/19578


   ### Apache Airflow version
   
   2.2.1 (latest released)
   
   ### Operating System
   
   Arch Linux
   
   ### Versions of Apache Airflow Providers
   
   None relevant
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   A local installation for development purposes.
   
   ### What happened
   
   Following the tutorial for custom timetable 
(https://airflow.apache.org/docs/apache-airflow/stable/howto/timetable.html) 
causes a error when the dag is run using `airflow tasks test 
example_after_workday_timetable_dag 2021-11-14`.
   
   ### What you expected to happen
   
   I expected it to work.
   
   ### How to reproduce
   
   Run the code from the tutorial, e.g.:
   
   ```python
   from airflow.decorators import dag, task
   
   from airflow.example_dags.plugins.workday import AfterWorkdayTimetable
   
   @dag(
       start_date=datetime(2020, 1, 1),
       timetable=AfterWorkdayTimetable(),
   )
   def example_etl():
       @task()
       def extract():
           pass
   
       extract()
   
   example_etl_dag = example_etl()
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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