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

WorkerV2 - Cloud Run V2 API #220

Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dd522d0
👌 IMPROVE: started on cloud run v2 block, added foundation for all, b…
japerry911 Sep 9, 2023
3a82098
👌 IMPROVE: rough draft, still missing kill method, but ready to start…
japerry911 Sep 10, 2023
5d39edc
🤖 TEST: testing
japerry911 Sep 11, 2023
63f3687
‼️ BREAKING: removing memory string test
japerry911 Sep 11, 2023
c3dae79
👌 IMPROVE: creates successfully
japerry911 Sep 11, 2023
8ae0bcf
🐛 FIX: removed client
japerry911 Sep 11, 2023
b4bcc03
🐛 FIX: fixed validation bug
japerry911 Sep 11, 2023
9e43161
🐛 FIX: fix mispelling for var
japerry911 Sep 11, 2023
667bd70
🐛 FIX: fixed and simplified job name generation
japerry911 Sep 11, 2023
eb19816
🐛 FIX: fixed issue with observedGeneration keyerror
japerry911 Sep 13, 2023
6e7f9b9
🤖 TEST: test config job name as var
japerry911 Sep 15, 2023
8710d0e
🐛 FIX: made IDs use whole Prefect Name
japerry911 Sep 28, 2023
7f94031
👌 IMPROVE: working cancelation functionality
japerry911 Oct 22, 2023
caa4eb8
🤖 TEST: added cloud run v2 block unit tests
japerry911 Oct 24, 2023
aabb26f
📖 DOC: added some unit tests and docstrings
japerry911 Oct 27, 2023
0b72fb3
👌 IMPROVE: solved merge conflicts and tested serving mkdocs
japerry911 Oct 27, 2023
da5b404
🐛 FIX: applied some ci test fixes
japerry911 Oct 27, 2023
23f8935
🐛 FIX: fixed some failing unit tests
japerry911 Oct 27, 2023
459b183
🐛 FIX: fix missing optional and remove | None
japerry911 Oct 27, 2023
8d06dce
🐛 FIX: added the Pydantic Version conditional import logic to cr2 wor…
japerry911 Oct 29, 2023
6282c80
Merge branch 'PrefectHQ:main' into skylord/new/cloud_run_v2_and_worke…
japerry911 Nov 2, 2023
e64c356
🐛 FIX: PR feedback implemented, separate cloud run v2 block infra to …
japerry911 Nov 5, 2023
f7dbf5c
🐛 FIX: attempted fix on 3.8 test changing list to typing.List
japerry911 Nov 5, 2023
2842d8e
Merge branch 'main' into skylord/new/cloud_run_v2_and_worker_v2-active
japerry911 Nov 5, 2023
d88c158
👌 IMPROVE: added get_prefect_image_name as default factory to image c…
japerry911 Nov 24, 2023
3b74cd3
🐛 FIX: fix ci test and hardcode default to prefect 2 latest image
japerry911 Nov 27, 2023
4889acb
Merge branch 'main' into skylord/new/cloud_run_v2_and_worker_v2-active
zzstoatzz Nov 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_v2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: prefect_gcp.cloud_run_v2
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
Copy link
Contributor

Choose a reason for hiding this comment

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

@zzstoatzz It seems like there was a 404 in loading this that wasn't caught

Copy link
Contributor

Choose a reason for hiding this comment

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

I can work on that @serinamarie - I see another thing in the API docs that needs fixed, too.

Copy link
Contributor

@serinamarie serinamarie Mar 26, 2024

Choose a reason for hiding this comment

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

it was fixed/merged! thanks though

- Vertex AI: vertex_worker.md

extra:
Expand Down
2 changes: 2 additions & 0 deletions prefect_gcp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
from .aiplatform import VertexAICustomTrainingJob # noqa
from .bigquery import BigQueryWarehouse # noqa
from .cloud_run import CloudRunJob # noqa
from .cloud_run_v2 import CloudRunJobV2 # noqa
from .cloud_storage import GcsBucket # noqa
from .credentials import GcpCredentials # noqa
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
Loading
Loading