notatallshaw commented on issue #7038: [AIRFLOW-4495] Allow externally 
triggered dags to run for future exec dates
URL: https://github.com/apache/airflow/pull/7038#issuecomment-577275156
 
 
   Sorry for the comment spam but I thought it would be important for @yuqian90 
   
   We have the exact same problem you have, we solve it by setting the DAG with 
a start date of the timezones it should be scheduled in, e.g. Tokyo time. We 
then create a macro which is a modified version of this: 
https://stackoverflow.com/a/54922776/2958068
   
   The macro above provides the execution date in the same time zone as the 
DAG. Further we modify it to provide the actual scheduled date e.g. if 
scheduled to run on 2019-01-01 08:00 that's the datetime it provides (which in 
the default Airlow variables is the 'next execution date'). 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to