You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/01/21 10:02:00 UTC

[jira] [Commented] (AIRFLOW-3739) Make start_date optional

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

Ash Berlin-Taylor commented on AIRFLOW-3739:
--------------------------------------------

Or maybe I mean {{schedule_interval=None}} and pick any {{start_date}}.

> Make start_date optional
> ------------------------
>
>                 Key: AIRFLOW-3739
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3739
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: api
>    Affects Versions: 1.10.3
>            Reporter: Anatoli Babenia
>            Priority: Major
>
> I want to define DAG, but not schedule it for running.
> ```
> from airflow import DAG
> from airflow.operators.bash_operator import BashOperator
> dag = DAG('115', schedule_interval="@daily")
> seed = BashOperator(
>     task_id='get_seed',
>     bash_command='date'
> )
> dag >> seed
> ```
> This fails with the error below.
> ```
> airflow.exceptions.AirflowException: Task is missing the start_date parameter
> zsh returned exit code 1
> ```
> It it possible to make `start_date` optional. If not, why?



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