Skip to content

next_ds changed to proxy and it cannot be used in ds_add macro function #19241

@ShaharPotash1

Description

@ShaharPotash1

Apache Airflow version

2.2.0 (latest released)

Operating System

Ubuntu

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

What happened

Tried to use this this code:
some_variable='{{macros.ds_format(macros.ds_add(next_ds, ' '(ti.start_date - ti.execution_date).days), ' '"%Y-%m-%d", "%Y-%m-%d 21:00:00")}}')
but got this error:
strptime() argument 1 must be str, not Proxy
because the next_ds variable changed to proxy.

What you expected to happen

No response

How to reproduce

No response

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions