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 09:59:00 UTC
[jira] [Closed] (AIRFLOW-3739) Make start_date optional
[ https://issues.apache.org/jira/browse/AIRFLOW-3739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ash Berlin-Taylor closed AIRFLOW-3739.
--------------------------------------
Resolution: Information Provided
If you want to create the dag but not have the scheduler run any tasks define it with {{start_date=None}} - this will show the DAG in the UI but not run it automatically. You will be able to manually trigger it via the CLI or UI.
> 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)