Skip to content

DAG Run ID referencing wrong DAG Run when trying to view #10721

@prakshalj0512

Description

@prakshalj0512

Apache Airflow version: 1.10.12

Kubernetes version (if you are using kubernetes) (use kubectl version): N/A

Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): MacOS & Linux
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

What happened:

I have set timezone=America/Phoenix in airflow.cfg.

When clicking on the DAG Run ID in the DAG list, it references the DAG run based on my timezone as opposed to the UTC one. Since all DAG Run IDs are comprised of UTC only, it ends up setting the Base Date to the wrong value and referencing the wrong DAG run.

What you expected to happen:

it should reference the correct DAG run.

What do you think went wrong?

When moving from DAG list to the individual DAG run view, it changes the UTC time to your timezone set in airflow.cfg and causes the mismatch.

How to reproduce it:

Set timezone to something other than UTC in airflow.cfg.
Create a normal DAG; schedule it to execute every 1 min.
Click on the Schedule button on the individual DAG view to get the DAG list.
Click on one of the entries to view the DAG run. You should notice it refers to the wrong one.

Screenshot Reference:

Screen Shot 2020-09-02 at 3 18 00 PM

Screen Shot 2020-09-02 at 3 18 54 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Can't ReproduceThe problem cannot be reproducedarea:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugpending-response

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions