You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Xiaodong DENG (JIRA)" <ji...@apache.org> on 2018/08/05 14:28:00 UTC
[jira] [Created] (AIRFLOW-2855) Need to Check Validity of Cron
Expression When Process DAG File/Zip File
Xiaodong DENG created AIRFLOW-2855:
--------------------------------------
Summary: Need to Check Validity of Cron Expression When Process DAG File/Zip File
Key: AIRFLOW-2855
URL: https://issues.apache.org/jira/browse/AIRFLOW-2855
Project: Apache Airflow
Issue Type: Improvement
Components: DAG
Reporter: Xiaodong DENG
Assignee: Xiaodong DENG
*schedule_interval* of DAGs can either be *datetime* or a *Cron expression*.
When it's a Cron expression, there is no mechanism to check its validity at this moment. If there is anything wrong with the Cron expression itself, it will cause issues when methods _*following_schedule(**)*_ and _*previous_schedule()*_ are invoked (will affect scheduling). However, exceptions will only be written into logs. From Web UI, it’s hard for users to identify this issue & the source while no new task can be initiated (especially for users who’re not very familiar with Cron).
It may be good to show error messages in web UI when a DAG's Cron expression (as schedule_interval) can not be parsed by *croniter* properly.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)