From 561afcccd0b200c4dbedac6274f1d9b5864c3f5b Mon Sep 17 00:00:00 2001 From: Frederick Mannings Date: Sun, 28 Sep 2025 22:12:20 +0100 Subject: [PATCH 1/2] Bumped Orca version --- orca | 2 +- orca_python/main.py | 38 +++++++++++++++++++++++--------------- pyproject.toml | 2 +- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/orca b/orca index 16b6306..b2e84f2 160000 --- a/orca +++ b/orca @@ -1 +1 @@ -Subproject commit 16b63068e7011df9622a5fe935eb854ccbe6baac +Subproject commit b2e84f205183feaa3f68ded18fc73565abf1980a diff --git a/orca_python/main.py b/orca_python/main.py index 49e5bc4..bae00b9 100644 --- a/orca_python/main.py +++ b/orca_python/main.py @@ -679,21 +679,29 @@ def Register(self) -> None: dep_msg.version = dep.version dep_msg.processor_name = dep.processor dep_msg.processor_runtime = dep.runtime - - if envs.is_production: - # secure channel with TLS - with grpc.secure_channel( - envs.ORCA_CORE, grpc.ssl_channel_credentials() - ) as channel: - stub = service_pb2_grpc.OrcaCoreStub(channel) - response = stub.RegisterProcessor(registration_request) - LOGGER.info(f"Algorithm registration response received: {response}") - else: - # insecure channel for local development - with grpc.insecure_channel(envs.ORCA_CORE) as channel: - stub = service_pb2_grpc.OrcaCoreStub(channel) - response = stub.RegisterProcessor(registration_request) - LOGGER.info(f"Algorithm registration response received: {response}") + try: + if envs.is_production: + # secure channel with TLS + with grpc.secure_channel( + envs.ORCA_CORE, grpc.ssl_channel_credentials() + ) as channel: + stub = service_pb2_grpc.OrcaCoreStub(channel) + response = stub.RegisterProcessor(registration_request) + LOGGER.info(f"Algorithm registration response received: {response}") + else: + # insecure channel for local development + with grpc.insecure_channel(envs.ORCA_CORE) as channel: + stub = service_pb2_grpc.OrcaCoreStub(channel) + response = stub.RegisterProcessor(registration_request) + LOGGER.info(f"Algorithm registration response received: {response}") + except grpc._channel._InactiveRpcError as e: + print() + print(e.details()) + sys.exit(1) + except Exception as e: + print() + print(e) + sys.exit(1) def Start(self) -> None: """ diff --git a/pyproject.toml b/pyproject.toml index 2d9c8e3..abdfbd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "orca-python" -version = "0.9.0" +version = "0.10.0" description = "Python SDK for the Predixus Orca product" authors = [ "Frederick Mannings " From 9b53e65f33e4e05d71db13f3c593ab6e45eb9677 Mon Sep 17 00:00:00 2001 From: Frederick Mannings Date: Sun, 28 Sep 2025 22:16:18 +0100 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9581249..e4691fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [v0.10.0] - 27-09-2025 +- Bumped Orca version + ## [v0.9.0] - 27-09-2025 ### Changed @@ -143,7 +146,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed -[unreleased]: https://github.com/Predixus/Orca/compare/v0.9.0...HEAD +[unreleased]: https://github.com/Predixus/Orca/compare/v0.10.0...HEAD +[v0.10.0]: https://github.com/Predixus/Orca/compare/v0.9.0...v0.10.0 [v0.9.0]: https://github.com/Predixus/Orca/compare/v0.8.0...v0.9.0 [v0.8.0]: https://github.com/Predixus/Orca/compare/v0.7.14...v0.8.0 [v0.7.14]: https://github.com/Predixus/Orca/compare/v0.7.13...v0.7.14 diff --git a/pyproject.toml b/pyproject.toml index abdfbd9..e12d85e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "orca-python" version = "0.10.0" description = "Python SDK for the Predixus Orca product" authors = [ - "Frederick Mannings " + "Frederick Mannings " ] readme = "README.md" packages = [