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

Remove Infrastructure, BlockWorker from main #13430

Merged
merged 7 commits into from
May 17, 2024

Conversation

serinamarie
Copy link
Contributor

@serinamarie serinamarie commented May 17, 2024

Closes #13362

Removes prefect.infrastructure.base module and references. Also removes the BlockWorker.

Important Note
Infrastructure will be included with 2.x releases, but will not be included in the 3.0 release.

@serinamarie serinamarie marked this pull request as ready for review May 17, 2024 15:03
@serinamarie serinamarie requested review from desertaxle, zzstoatzz and a team as code owners May 17, 2024 15:03
@@ -130,7 +128,7 @@ class ACRManagedIdentity(BaseModel):
)


class AzureContainerInstanceJobResult(InfrastructureResult):
class AzureContainerInstanceJobResult:
Copy link
Member

Choose a reason for hiding this comment

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

Is this class still used somewhere? I think it can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the worker return type /type hints

@@ -390,5 +388,5 @@ def get(
)


class CloudRunJobV2Result(InfrastructureResult):
class CloudRunJobV2Result:
Copy link
Member

Choose a reason for hiding this comment

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

I think this class can also be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is a type hint for return type for CloudRunWorkerV2. Removing the type hints ok?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm just merging this for now to unblock another PR but happy to remove these after if so!

@serinamarie serinamarie merged commit 6da64de into main May 17, 2024
34 checks passed
@serinamarie serinamarie deleted the all-about-that-infra-base branch May 17, 2024 17:09
@serinamarie serinamarie restored the all-about-that-infra-base branch May 17, 2024 17:20
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.

Remove Infrastructure from main
2 participants