You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "JS de Boer (Jira)" <ji...@apache.org> on 2019/08/23 08:43:00 UTC

[jira] [Created] (AIRFLOW-5291) Webserver can create a dag_run without a dag_id

JS de Boer created AIRFLOW-5291:
-----------------------------------

             Summary: Webserver can create a dag_run without a dag_id
                 Key: AIRFLOW-5291
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5291
             Project: Apache Airflow
          Issue Type: Bug
          Components: webserver
    Affects Versions: 1.10.0, 1.9.0
         Environment: composer
            Reporter: JS de Boer


We ran into an issue during a workshop on using airflow:
 * Go to the webserver
 ** Open Browse > DAG Runs
 ** Create a DAG run
 ** Do not fill in the DAG ID

This resulted in a dag_run with the dag_id not set (Python None). However, our code checks if a run is a backfill so that it can double check the possible costs associated with that backfill.

The _is_backfill_ property of the dag_run makes use of _self.dag_run.startswith_, which requires the dag_run to be a string.

How to solve (options):
 * Generate a _dag_id_  if it is not provided in _dag_run_ creation
 * Disallow empty values on the webserver



--
This message was sent by Atlassian Jira
(v8.3.2#803003)