airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject incubator-airflow git commit: [AIRFLOW-817] Check for None value of execution_date in endpoint
Date Tue, 31 Jan 2017 18:54:17 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/master 4b6c389b3 -> 2b13109ff


[AIRFLOW-817] Check for None value of execution_date in endpoint

execution_date can be present in json while
resolving to None.

Closes #2034 from bolkedebruin/AIRFLOW-817


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/2b13109f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/2b13109f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/2b13109f

Branch: refs/heads/master
Commit: 2b13109ff01ee1534d611665d974667a06787cb2
Parents: 4b6c389
Author: Bolke de Bruin <bolke@xs4all.nl>
Authored: Tue Jan 31 18:54:05 2017 +0000
Committer: Bolke de Bruin <bolke@xs4all.nl>
Committed: Tue Jan 31 18:54:05 2017 +0000

----------------------------------------------------------------------
 airflow/www/api/experimental/endpoints.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/2b13109f/airflow/www/api/experimental/endpoints.py
----------------------------------------------------------------------
diff --git a/airflow/www/api/experimental/endpoints.py b/airflow/www/api/experimental/endpoints.py
index 9b248c1..56b9d79 100644
--- a/airflow/www/api/experimental/endpoints.py
+++ b/airflow/www/api/experimental/endpoints.py
@@ -50,7 +50,7 @@ def trigger_dag(dag_id):
         conf = data['conf']
 
     execution_date = None
-    if 'execution_date' in data:
+    if 'execution_date' in data and data['execution_date'] is not None:
         execution_date = data['execution_date']
 
         # Convert string datetime into actual datetime


Mime
View raw message