Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
WorkerV2 - Cloud Run V2 API (#220)
Browse files Browse the repository at this point in the history
* πŸ‘Œ IMPROVE: started on cloud run v2 block, added foundation for all, building out abstract cmds now

* πŸ‘Œ IMPROVE: rough draft, still missing kill method, but ready to start on workerv2

* πŸ€– TEST: testing

* ‼️ BREAKING: removing memory string test

* πŸ‘Œ IMPROVE: creates successfully

* πŸ› FIX: removed client

* πŸ› FIX: fixed validation bug

* πŸ› FIX: fix mispelling for var

* πŸ› FIX: fixed and simplified job name generation

* πŸ› FIX: fixed issue with observedGeneration keyerror

* πŸ€– TEST: test config job name as var

* πŸ› FIX: made IDs use whole Prefect Name

* πŸ‘Œ IMPROVE: working cancelation functionality

* πŸ€– TEST: added cloud run v2 block unit tests

* πŸ“– DOC: added some unit tests and docstrings

* πŸ› FIX: applied some ci test fixes

* πŸ› FIX: fixed some failing unit tests

* πŸ› FIX: fix missing optional and remove | None

* πŸ› FIX: added the Pydantic Version conditional import logic to cr2 worker and block

* πŸ› FIX: PR feedback implemented, separate cloud run v2 block infra to models directory

* πŸ› FIX: attempted fix on 3.8 test changing list to typing.List

* πŸ‘Œ IMPROVE: added get_prefect_image_name as default factory to image cloud run v2

* πŸ› FIX: fix ci test and hardcode default to prefect 2 latest image

---------

Co-authored-by: nate nowack <[email protected]>
  • Loading branch information
japerry911 and zzstoatzz authored Nov 28, 2023
1 parent 1f951a1 commit 231f68a
Show file tree
Hide file tree
Showing 10 changed files with 1,532 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# JetBrains
.idea

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added `CloudRunJobV2` and `CloudRunWorkerV2` for executing Prefect flows via Google Cloud Run - [#220](https://github.com/PrefectHQ/prefect-gcp/pull/220)

### Changed

### Deprecated
Expand Down
1 change: 1 addition & 0 deletions docs/cloud_run_worker_v2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: prefect_gcp.workers.cloud_run_v2
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ nav:
- BigQuery: bigquery.md
- Secret Manager: secret_manager.md
- Cloud Run: cloud_run.md
- Cloud Run V2: cloud_run_v2.md
- AI Platform: aiplatform.md
- Deployment Steps: deployments/steps.md
- Workers:
- Cloud Run: cloud_run_worker.md
- Cloud Run V2: cloud_run_worker_v2.md
- Vertex AI: vertex_worker.md

extra:
Expand Down
1 change: 1 addition & 0 deletions prefect_gcp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .secret_manager import GcpSecret # noqa
from .workers.vertex import VertexAIWorker # noqa
from .workers.cloud_run import CloudRunWorker # noqa
from .workers.cloud_run_v2 import CloudRunWorkerV2 # noqa

register_renamed_module(
"prefect_gcp.projects", "prefect_gcp.deployments", start_date="Jun 2023"
Expand Down
Empty file added prefect_gcp/models/__init__.py
Empty file.
Loading

0 comments on commit 231f68a

Please sign in to comment.