Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-5710

Optionally error on unused operator arguments

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.10.5
    • Fix Version/s: 1.10.6
    • Component/s: core
    • Labels:
      None

      Description

      Airflow 2.0 will error when operators are instantiated with unused keyword arguments, but for now unused arguments just raise a warning. My team has passed unused arguments to operators and not noticed the warning a few times, and it would be useful to be able to opt in to airflow 2.0 validation early. I propose adding a configuration flag that causes tasks to error on unused arguments.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jmcarp Joshua Carp
                Reporter:
                jmcarp Joshua Carp
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: