VinolFernandes commented on PR #73909:
URL: https://github.com/apache/airflow/pull/73909#issuecomment-6908752515
Thanks, that makes sense. Presets are now declared on `ParamsDict`, and the
`param_presets`
argument on the Dag constructor is gone:
```python
params=ParamsDict({...}, presets={"Nightly": {"batch_size": 512}})
```
They are still Dag code and still validated against the params while the Dag
is parsed, including
after `default_args["params"]` is merged in. Presets on a task's params are
ignored.
The serialized Dag still stores them next to `params`, as a Dag-level
`param_presets` field, so the
params encoding the other SDKs emit is unchanged. Happy to move them inside
that encoding instead if
you would rather.
---
Drafted-by: Claude Code (Opus 5.5); reviewed by @VinolFernandes before
posting
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]