Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-921 1.8.0rc Issues
  3. AIRFLOW-920

Can't mark non-existent tasks as successful from graph view

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.8.0rc4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If you want to add a subdag operator with depends on past set to an existing dag you need to mark the subdag as successful in the UI in order for it to start running. Previously this was possible by mark-successing the non-existent task instance/dagrun in the UI via the graph view. Now when you try to mark the task successful Airflow gives an empty list of tasks that it is going to try to mark successful, probably because the task instance/dagrun do not exist.

      Repro steps:

      • Create a DAG with a dummy task
      • Let this DAG run for one dagrun
      • Add a new subdag operator that contains a dummy operator to this DAG that
        has depends_on_past set to true
      • click on the white square for the new subdag operator in the DAGs first
        dagrun
      • Click "Zoom into subdag" (takes you to the graph view for the subdag)
      • Click the dummy task in the graph view and click "Mark Success"
      • Observe that the list of tasks to mark as success is empty (it should
        contain the dummy task)

      Bolke de Bruin

        Attachments

        1. airflow_code_test_subdag.png
          413 kB
          Bolke de Bruin
        2. airflow_treeview_test_subdag.png
          140 kB
          Bolke de Bruin
        3. airflow_dialog_test_subdag.png
          238 kB
          Bolke de Bruin
        4. airfow_confirm_test_subdag.png
          155 kB
          Bolke de Bruin

          Activity

            People

            • Assignee:
              bolke Bolke de Bruin
              Reporter:
              aoen Dan Davydov
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: