Skip to content

Couldn't able to access Airflow variables inside @task.virtualenv operator #51422

@gsaivenkateshzs

Description

@gsaivenkateshzs

Apache Airflow version

3.0.1

If "Other Airflow 2 version" selected, which one?

No response

What happened?

I am trying to acess airflow variable inside @task.virtualenv operator but it's failing with below error

Image

What you think should happen instead?

No response

How to reproduce

  • Create task using @task.virtualenv
  • Try to access airflow variables inside it

Operating System

mac

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

Airflow Standalone

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions