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:35 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/v1-8-test 2b7d40bf8 -> c01b6c9c6


[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

(cherry picked from commit 2b13109ff01ee1534d611665d974667a06787cb2)
Signed-off-by: Bolke de Bruin <bolke@xs4all.nl>


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

Branch: refs/heads/v1-8-test
Commit: c01b6c9c636b4706b6b3bf9452404efc8938e6de
Parents: 2b7d40b
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:25 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/c01b6c9c/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