Skip to content

'NoneType' object has no attribute 'refresh_from_task' Error when manually running task instance #19477

@potiuk

Description

@potiuk

Discussed in #19366

Originally posted by a-pertsev November 2, 2021

Apache Airflow version

2.2.1 (latest released)

Operating System

Ubuntu 20.04 LTS

Versions of Apache Airflow Providers

apache-airflow-providers-amazon==2.3.0
apache-airflow-providers-apache-cassandra==2.1.0
apache-airflow-providers-ftp==2.0.1
apache-airflow-providers-google==6.0.0
apache-airflow-providers-http==2.0.1
apache-airflow-providers-imap==2.0.1
apache-airflow-providers-jdbc==2.0.1
apache-airflow-providers-mysql==2.1.1
apache-airflow-providers-postgres==2.3.0
apache-airflow-providers-presto==2.0.1
apache-airflow-providers-slack==4.1.0
apache-airflow-providers-sqlite==2.0.1

Deployment

Virtualenv installation

Deployment details

No response

What happened

Got error when manually run newly created task in already finished dag run (in UI).

What you expected to happen

"Run" button should work without exceptions.

How to reproduce

  1. Define a dag with some tasks.
  2. Create dag run (manually or by schedule)
  3. Add new task into dag, deploy code
  4. Select new task in UI and press "Run" button

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions