Skip to content

Prevent templated field logic checks in __init__ of operators automatically #29069

Closed

Description

@potiuk

Body

It happens all-too-often that in our operators we have some initialization logic that checks the content of templated fields or generally parameters passed to the operators. This however has an adverse effect that if those checks assume some content or type of those fields, there are a number of cases that those checks are wrong.

Example here: #27328

We should have a way to automatically check if someone is performing such logical checks in all our operators.

This has been initially discussed here: #27328 (comment) and there are some ideas how this might be done.

However we are open for any way of doing it

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

  1. added
    kind:metaHigh-level information important to the community
    on Jan 20, 2023
  2. shahar1 commented on May 16, 2023

    @shahar1
    Contributor

    @eladkal Please assign me

  3. potiuk commented on May 16, 2023

    @potiuk
    MemberAuthor

    Done

  4. ephraimbuddy commented on Jul 4, 2023

    @ephraimbuddy
    Contributor

    @shahar1, are you still working on this?

  5. shahar1 commented on Jul 4, 2023

    @shahar1
    Contributor

    @shahar1, are you still working on this?

    I started working on it a while ago, I paused due to some personal circumstances.
    I'll try to get back to it in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:metaHigh-level information important to the community

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions