Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion orca
Submodule orca updated from 16b630 to b2e84f
38 changes: 23 additions & 15 deletions orca_python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <contact@predixus.com>"
"Frederick Mannings <fred@orc-a.io>"
]
readme = "README.md"
packages = [
Expand Down