[ 
https://issues.apache.org/jira/browse/AIRFLOW-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861237#comment-15861237
 ] 

ASF subversion and git services commented on AIRFLOW-856:
---------------------------------------------------------

Commit b7c828bf094d3aa1eae310979a82addf7e423bb0 in incubator-airflow's branch 
refs/heads/master from [~bolke]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=b7c828b ]

[AIRFLOW-856] Make sure execution date is set for local client

In the local api client the execution date was
hardi coded to None.
Secondly, when no execution date was specified the
execution date
was set to datetime.now(). Datetime.now() includes
the fractional seconds
that are supported in the database, but they are
not supported in
a.o. the current logging setup. Now we cut off
fractional seconds for
the execution date.

Closes #2064 from bolkedebruin/AIRFLOW-856


> Execution_date is always set to None in local_client API
> --------------------------------------------------------
>
>                 Key: AIRFLOW-856
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-856
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: cli
>    Affects Versions: 1.8.0rc2
>            Reporter: Bolke de Bruin
>            Assignee: Bolke de Bruin
>            Priority: Blocker
>             Fix For: 1.8.0rc3
>
>
>    def trigger_dag(self, dag_id, run_id=None, conf=None, execution_date=None):
>         dr = trigger_dag.trigger_dag(dag_id=dag_id,
>                                      run_id=run_id,
>                                      conf=conf,
>                                      execution_date=None)
>         return "Created {}".format(dr)
> is the code in local_client. This sets execution_date to None



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to