-
Notifications
You must be signed in to change notification settings - Fork 16.9k
Use SDK serde for trigger and next kwargs serialization #59711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
amoghrajesh
merged 38 commits into
apache:main
from
astronomer:use-serde-for-next-kwargs
Dec 30, 2025
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
e3bad52
Use serde for next_kwargs for deferred tasks
amoghrajesh 8ad4b7c
remove field serializer actually
amoghrajesh 88aa2c5
remove field serializer actually
amoghrajesh fb077d9
remove field serializer actually
amoghrajesh 13ffed4
remove field serializer actually
amoghrajesh fc88026
remove field serializer actually
amoghrajesh df6b61f
remove field serializer actually
amoghrajesh 81d4218
remove field serializer actually
amoghrajesh 75ff08b
handling compat: old worker, new api server
amoghrajesh 4ecc73c
why did I remove these?
amoghrajesh 2180e1b
move over the kwargs to JsonValue
amoghrajesh 936b402
move over the kwargs to JsonValue
amoghrajesh 43a23ab
move over the kwargs to JsonValue
amoghrajesh 4784c19
move over the kwargs to JsonValue
amoghrajesh 1989dd9
move over the kwargs to JsonValue
amoghrajesh bd77075
move over the kwargs to JsonValue
amoghrajesh 377c7ac
fixing unit tests
amoghrajesh 0647c5c
no need for the cast
amoghrajesh e26e20f
no need for the cast
amoghrajesh 41d1f2d
fixing unit tests
amoghrajesh 5085323
fixing dag.test command
amoghrajesh a797be0
fixing dag.test command
amoghrajesh 82e94f1
fixing dag.test command
amoghrajesh 177b0a4
fixing dag.test command
amoghrajesh 28f186f
comments from kaxil
amoghrajesh bf18255
fixing tests
amoghrajesh a09ea92
fixing tests
amoghrajesh 8c14feb
fixing inline triggers
amoghrajesh f8d5a04
changing to dict[str,JsonValue] for kwargs
amoghrajesh c73862f
adding a cadwyn migration
amoghrajesh 7471764
Merge branch 'main' into use-serde-for-next-kwargs
amoghrajesh 6a2044c
fixing provider tests
amoghrajesh b304cac
better fixing mypy issues
amoghrajesh a446ece
better fixing mypy issues
amoghrajesh 85e7e38
better fixing mypy issues
amoghrajesh 46f3f8f
use literal asserts
amoghrajesh cd6dd67
fixing upgrade scenario
amoghrajesh a07754a
fixing upgrade scenario
amoghrajesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
airflow-core/src/airflow/api_fastapi/execution_api/versions/v2026_03_31.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
|
|
||
| from cadwyn import VersionChange, schema | ||
|
|
||
| from airflow.api_fastapi.execution_api.datamodels.taskinstance import TIDeferredStatePayload | ||
|
|
||
|
|
||
| class ModifyDeferredTaskKwargsToJsonValue(VersionChange): | ||
| """Change the types of `trigger_kwargs` and `next_kwargs` in TIDeferredStatePayload to JsonValue.""" | ||
|
|
||
| description = __doc__ | ||
|
|
||
| instructions_to_migrate_to_previous_version = ( | ||
| schema(TIDeferredStatePayload).field("trigger_kwargs").had(type=dict[str, Any] | str), | ||
| schema(TIDeferredStatePayload).field("next_kwargs").had(type=dict[str, Any]), | ||
| ) | ||
amoghrajesh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.