You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Trevor Burke (JIRA)" <ji...@apache.org> on 2019/05/09 22:05:00 UTC

[jira] [Closed] (AIRFLOW-4164) Add previous execution date in ISO format macro variable

     [ https://issues.apache.org/jira/browse/AIRFLOW-4164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trevor Burke closed AIRFLOW-4164.
---------------------------------
    Resolution: Fixed

I realized you can utilize `replace` method to then convert to iso format

> Add previous execution date in ISO format macro variable
> --------------------------------------------------------
>
>                 Key: AIRFLOW-4164
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4164
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: models
>    Affects Versions: 1.10.2
>            Reporter: Trevor Burke
>            Assignee: Trevor Burke
>            Priority: Minor
>
> It appears, to me, there isn't a macro default variable to access previous execution date in ISO format, just simple '%Y-%m-%d' format. Adding in a macro default variable of `prev_ds_iso` would require only four lines added, none removed across three modules.
> If it's already possible to access a more precise version of \{{ prev_ds }} I'm all ears! Happy to take this quick PR on though. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)