Skip to content
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

migrate prefect-gcp to pydantic 2 #13650

Merged
merged 10 commits into from
May 30, 2024
Merged

migrate prefect-gcp to pydantic 2 #13650

merged 10 commits into from
May 30, 2024

Conversation

zzstoatzz
Copy link
Collaborator

@zzstoatzz zzstoatzz commented May 29, 2024

sync_compatible was restored today by #13627, which allowed us to be less destructive in our migration of prefect-gcp (given there are many pre-built tasks and block methods that use sync_compatible or depend on the sneaky async-in-sync compatibility that we often used in 2.x)

it may be worth coming back to this and defining explicit methods for each thing ({method}_async) in the future, but continuing to use sync_compatible here felt like the most prudent option for now

@@ -48,6 +42,7 @@ def _result_sync(func, *args, **kwargs):


@task
@sync_compatible
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are to maintain the interface since async flows were imported and used as if they were sync due to 2.x engine mechanics

@zzstoatzz zzstoatzz marked this pull request as ready for review May 30, 2024 15:59
@zzstoatzz zzstoatzz merged commit 2424875 into main May 30, 2024
12 of 13 checks passed
@zzstoatzz zzstoatzz deleted the pydantic-v2-prefect-gcp branch May 30, 2024 20:15
desertaxle pushed a commit that referenced this pull request May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants