[
https://issues.apache.org/jira/browse/AIRFLOW-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16725680#comment-16725680
]
jack commented on AIRFLOW-644:
------------------------------
It's a bad practice to do 'start_date': datetime.now(),```
> Issue with past runs when using starttime as datetime.now()
> -----------------------------------------------------------
>
> Key: AIRFLOW-644
> URL: https://issues.apache.org/jira/browse/AIRFLOW-644
> Project: Apache Airflow
> Issue Type: Bug
> Components: DagRun
> Reporter: Puneeth Potu
> Priority: Major
>
> Hi, we used the following snippet in the dag parameters
> ```default_args = {
> 'owner': 'dwh',
> 'depends_on_past': True,
> 'wait_for_downstream': True,
> 'start_date': datetime.now(),```
> When used datetime.now() along with frequency as @daily I see the last 5 runs
> in my graph view, and the dag status of all the previous runs is "FAILED"
> When used datetime.now() along with frequency as @monthly I see the last 14
> runs in my graph view, and the dag status of all the previous runs is
> "FAILED"
> When used datetime.now() along with frequency as @weekly I see the last 53
> runs in my graph view, and the dag status of all the previous runs is
> "FAILED"
> For monthly and weekly it is not showing either the current week or month. I
> activated my Dags today (11/22/2016).
> I see weekly runs populated from (2015-11-15 to 2016-11-13), and I don't see
> 2016-11-20 which is the latest.
> I see Monthly runs populated from (2015-09-01 to 2016-10-01) and I don't see
> 2016-11-01 which is the latest.
> Please, advise if this is the expected behavior.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)