Skip to content

Commit 227f664

Browse files
authored
MRG: Merge pull request #580 from octue/reversion/remove-cloud-run-deployer
Remove Cloud Run deployer and associated CLI command
2 parents 55eadcc + 22202aa commit 227f664

File tree

18 files changed

+497
-835
lines changed

18 files changed

+497
-835
lines changed

docs/source/inter_service_compatibility.rst

+147-145
Large diffs are not rendered by default.

octue/cli.py

-25
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from google import auth
1212

1313
from octue.cloud import storage
14-
from octue.cloud.deployment.google.cloud_run.deployer import CloudRunDeployer
1514
from octue.cloud.pub_sub import Subscription, Topic
1615
from octue.cloud.pub_sub.service import Service
1716
from octue.cloud.service_id import convert_service_id_to_pub_sub_form, create_service_sruid, get_service_sruid_parts
@@ -352,30 +351,6 @@ def deploy():
352351
"""Deploy a python app to the cloud as an Octue service or digital twin."""
353352

354353

355-
@deploy.command()
356-
@click.option(
357-
"-c",
358-
"--service-config",
359-
type=click.Path(exists=True, dir_okay=False),
360-
default="octue.yaml",
361-
show_default=True,
362-
help="The path to an `octue.yaml` file defining the service to deploy.",
363-
)
364-
@click.option("--no-cache", is_flag=True, help="If provided, don't use the Docker cache.")
365-
@click.option("--update", is_flag=True, help="If provided, allow updates to an existing service.")
366-
@click.option(
367-
"--revision-tag",
368-
type=str,
369-
default=None,
370-
help="A tag to use for this revision of the service (e.g. 1.3.7). This overrides the `OCTUE_SERVICE_REVISION_TAG` "
371-
"environment variable if it's present. If this option isn't given and the environment variable isn't present, a "
372-
"random 'cool name' tag is generated e.g 'curious-capybara'.",
373-
)
374-
def cloud_run(service_config, update, no_cache, revision_tag):
375-
"""Deploy a python app to Google Cloud Run as an Octue service or digital twin."""
376-
CloudRunDeployer(service_config, revision_tag=revision_tag).deploy(update=update, no_cache=no_cache)
377-
378-
379354
@deploy.command()
380355
@click.option(
381356
"-c",

octue/cloud/deployment/google/cloud_run/deployer.py

-234
This file was deleted.

octue/metadata/recorded_questions.jsonl

+1
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@
6969
{"parent_sdk_version": "0.43.7", "question": {"data": "{\"input_values\": {\"height\": 4, \"width\": 72}, \"input_manifest\": {\"id\": \"fc6e6c2b-5143-4a6f-986a-5cd96e868dc9\", \"name\": null, \"datasets\": {\"my_dataset\": \"/var/folders/sk/hf5fbp616c77tsys9lz55qn40000gp/T/tmpy_fdiwen\"}}, \"children\": null, \"message_number\": 0}", "attributes": {"question_uuid": "60454c40-a46d-49a7-b004-59812d4c4203", "forward_logs": "1", "allow_save_diagnostics_data_on_crash": "1", "octue_sdk_version": "0.43.7"}}}
7070
{"parent_sdk_version": "0.44.0", "question": {"data": "{\"input_values\": {\"height\": 4, \"width\": 72}, \"input_manifest\": {\"id\": \"8d79f172-5565-4903-8dc2-481b95d37cd8\", \"name\": null, \"datasets\": {\"my_dataset\": \"/var/folders/sk/hf5fbp616c77tsys9lz55qn40000gp/T/tmpkyd5lpg9\"}}, \"children\": null, \"message_number\": 0}", "attributes": {"question_uuid": "34f946ef-f359-436a-892a-5a91b5991a1c", "forward_logs": "1", "allow_save_diagnostics_data_on_crash": "1", "octue_sdk_version": "0.44.0"}}}
7171
{"parent_sdk_version": "0.45.0", "question": {"data": "{\"input_values\": {\"height\": 4, \"width\": 72}, \"input_manifest\": {\"id\": \"ef377a21-8633-4324-ac82-efab087605c8\", \"name\": null, \"datasets\": {\"my_dataset\": \"/var/folders/sk/hf5fbp616c77tsys9lz55qn40000gp/T/tmpit8qx3kc\"}}, \"children\": null, \"message_number\": 0}", "attributes": {"question_uuid": "5f0a60b6-b770-465b-a7ff-2e7b1854a171", "forward_logs": "1", "allow_save_diagnostics_data_on_crash": "1", "octue_sdk_version": "0.45.0"}}}
72+
{"parent_sdk_version": "0.46.0", "question": {"data": "{\"input_values\": {\"height\": 4, \"width\": 72}, \"input_manifest\": {\"id\": \"a289353b-2708-4a69-a72e-54bf67b75e61\", \"name\": null, \"datasets\": {\"my_dataset\": \"/var/folders/sk/hf5fbp616c77tsys9lz55qn40000gp/T/tmp56ucgays\"}}, \"children\": null, \"message_number\": 0}", "attributes": {"question_uuid": "bb08fdfc-6f67-4942-8fc4-8a4adb7bb93c", "forward_logs": "1", "allow_save_diagnostics_data_on_crash": "1", "octue_sdk_version": "0.46.0"}}}

0 commit comments

Comments
 (0)