Trigger UI clamps Param min/max instead of rejecting out-of-range values
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python, react, typescript
- Ambito
- backend-api-design, frontend
Direzione di ricerca
Inizia dal modulo Trigger di Airflow 3, in FieldNumber.tsx, dove l’issue indica lo schema minimum e maximum passati a NumberInput. Segui come questo campo mantiene i valori digitati e come l’invio del modulo segnala gli errori Param JSON Schema; confronta il comportamento con quello documentato per Trigger. Il lavoro è completato quando i valori fuori intervallo vengono rifiutati con un errore e non possono creare un DagRun.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Under which category would you file this issue?
Airflow Core
Apache Airflow version
3.3.1
What happened and how to reproduce it?
When a DAG Param sets a minimum or maximum on an integer field, typing a value outside that range in the Airflow 3 Trigger form does not fail the trigger. The form quietly changes the number to fit the allowed range, then submits it. The run starts with the corrected value instead of being blocked.
Example DAG:
from airflow.sdk import Param, dag, task
@dag(
dag_id="repro_param_minmax_clamp",
schedule=None,
start_date=None,
catchup=False,
params={
"hold_seconds": Param(180, type="integer", minimum=1, maximum=600),
},
)
def repro():
@task
def show(params=None):
print((params or {}).get("hold_seconds"))
show()
repro()
How to reproduce
- Deploy the DAG above on Airflow 3.3.1 (also present on current
mainFieldNumber.tsx:max={param.schema.maximum},min={param.schema.minimum}). - Open Trigger DAG in the UI.
- Type
6666inhold_seconds(abovemaximum=600). - Trigger the DAG.
- Observe: the field/value becomes
600(or similar clamp), the run starts successfully, and the task prints600. - Repeat with
0or-5(belowminimum=1): the UI clamps up to1instead of blocking the trigger.
Contrast: CLI/API correctly reject the same values:
airflow dags trigger repro_param_minmax_clamp --conf '{"hold_seconds": 6666}'
# ParamValidationError: 6666 is greater than the maximum of 600
airflow dags trigger repro_param_minmax_clamp --conf '{"hold_seconds": 0}'
# ParamValidationError: 0 is less than the minimum of 1
Docs say invalid params should show a warning and not create a DagRun. The UI path never sends the invalid value, so that validation never runs.
What you think should happen instead?
- User can type a value outside
[minimum, maximum](or the field keeps the invalid typed value). - On Trigger, the UI/API fails validation (inline or form error), same as CLI/API
ParamValidationError. - No DagRun is created until the value is corrected.
Suggested direction: do not pass schema min/max into NumberInput as hard clamps (or disable clamp behavior), and rely on Param JSON Schema validation at submit time for both min and max, consistent with the documented trigger behavior and with the backend.
Operating System
Ubuntu 24.04.4 LTS
Deployment
Docker-Compose
Apache Airflow Provider(s)
No response
Versions of Apache Airflow Providers
No response
Official Helm Chart version
No response
Kubernetes Version
No response
Helm Chart configuration
No response
Docker Image customizations
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
- Lingua principale
- Python
- Stelle
- 47.3k
- Fork
- 18.1k
- Merge medio
- 23h 27m
- PR unite (30g)
- 629
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/airflow
-
`@task.pyspark` does not template `config_kwargs` and `conn_id`Forse già presa @sdaberdaku l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Deadline Alert: No support for SmtpNotifierForse già presa @LiaoAB l’ha presa 3 giorni fa. Apertakind:bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/airflow#75452 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
RedactedIO leaks secret bytes to stdoutForse già presa @ShivanshhhG l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/airflow#75069 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Task supervisor raises TypeError when a task log event has a key named target or msg, orphaning the task process and recording a successful task as failedForse già presa @liwenjie200543 l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/airflow#75017 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Helm: Disabled triggerer KEDA labels change worker PgBouncer accessForse già presa @Autumn2OO5 l’ha presa 16 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
apache/airflow#74546 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/airflow
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
521xueweihan/HelloGitHub#4150 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
aws-samples/sample-per-model-bedrock#595 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug connectors
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
pyinfra-dev/pyinfra#2036 ·
I maintainer di solito rispondono entro 9 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno