[AIRFLOW-5710] Optionally raise exception on unused operator arguments.#6332
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6332 +/- ##
=========================================
- Coverage 80.31% 80.12% -0.2%
=========================================
Files 616 616
Lines 35812 35814 +2
=========================================
- Hits 28763 28696 -67
- Misses 7049 7118 +69
Continue to review full report at Codecov.
|
|
Can you create a ticket and add a short note in the documentation? The ticket will allow us to easier manage relaase, and the documentation will allow other people to use this feature. |
0d54b19 to
70d2a93
Compare
| default_ram = 512 | ||
| default_disk = 512 | ||
| default_gpus = 0 | ||
| allow_illegal_arguments = True |
There was a problem hiding this comment.
Shouldn't be here a short note explaining what this setting does?
Something like
# When set to False raise exception on unused operator arguments
|
@OmerJog I am new to airflow and confused with At So, How can I trigger a DAG with some arguments? |
Make sure you have checked all steps below.
Jira
Description
My team doesn't always notice warnings for unused operator arguments, and the behavior in airflow 2.0 (raising an exception) would be useful to us. This patch adds an
ALLOW_ILLEGAL_ARGUMENTSconfiguration option that defaults toTrue, and ifFalseraises an exception on unused arguments.Tests
Commits
Documentation