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/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..e12d85e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [tool.poetry] name = "orca-python" -version = "0.9.0" +version = "0.10.0" description = "Python SDK for the Predixus Orca product" authors = [ - "Frederick Mannings " + "Frederick Mannings " ] readme = "README.md" packages = [