Skip to content

Commit

Permalink
0.0.73
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed Oct 10, 2024
1 parent dc6d52d commit a523f4d
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 49 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: 0.0.72
name: Release 0.0.72
tag_name: 0.0.73
name: Release 0.0.73
body: |
Please read the [CHANGELOG](https://unicorn-binance-depthcache-cluster.docs.lucit.tech/changelog.html) for further information.
draft: false
Expand Down
2 changes: 1 addition & 1 deletion container/generic_loader/requirements-lucit_ubdcc_dcn.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
lucit-ubdcc-dcn==0.0.72
lucit-ubdcc-dcn==0.0.73
unicorn_binance_local_depth_cache>=2.1.1
2 changes: 1 addition & 1 deletion container/generic_loader/requirements-lucit_ubdcc_mgmt.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lucit-ubdcc-mgmt==0.0.72
lucit-ubdcc-mgmt==0.0.73
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lucit-ubdcc-restapi==0.0.72
lucit-ubdcc-restapi==0.0.73
2 changes: 1 addition & 1 deletion dev/docker/lucit-ubdcc-dcn-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION="0.0.72-latest"
VERSION="0.0.73-latest"

echo Deploying UBDCC DepthCacheCluster $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories

Expand Down
2 changes: 1 addition & 1 deletion dev/docker/lucit-ubdcc-dcn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION="0.0.72"
VERSION="0.0.73"

echo Deploying UBDCC DepthCacheCluster $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories

Expand Down
2 changes: 1 addition & 1 deletion dev/docker/lucit-ubdcc-mgmt-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION="0.0.72-latest"
VERSION="0.0.73-latest"

echo Deploying UBDCC Mgmt $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories

Expand Down
2 changes: 1 addition & 1 deletion dev/docker/lucit-ubdcc-mgmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION="0.0.72"
VERSION="0.0.73"

echo Deploying UBDCC Mgmt $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories

Expand Down
2 changes: 1 addition & 1 deletion dev/docker/lucit-ubdcc-restapi-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION="0.0.72-latest"
VERSION="0.0.73-latest"

echo Deploying UBDCC RESTAPI $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories

Expand Down
2 changes: 1 addition & 1 deletion dev/docker/lucit-ubdcc-restapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION="0.0.72"
VERSION="0.0.73"

echo Deploying UBDCC RESTAPI $VERSION to https://i018oau9.c1.de1.container-registry.ovh.net/harbor/projects/3/repositories

Expand Down
2 changes: 1 addition & 1 deletion dev/set_version_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ files:
- packages/lucit-ubdcc-shared-modules/lucit_ubdcc_shared_modules/App.py
- packages/lucit-ubdcc-shared-modules/pyproject.toml
- packages/lucit-ubdcc-shared-modules/setup.py
version: 0.0.72
version: 0.0.73
4 changes: 2 additions & 2 deletions packages/lucit-ubdcc-dcn/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lucit-ubdcc-dcn"
version = "0.0.72"
version = "0.0.73"
description = "LUCIT UBDCC DepthCacheNode"
authors = ["LUCIT Systems and Development <info@lucit.tech>"]
license = "LSOSL - LUCIT Synergetic Open Source License"
Expand All @@ -25,7 +25,7 @@ repository = "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-d
[tool.poetry.dependencies]
python = ">=3.12.0"
lucit-licensing-python = ">=1.8.2"
lucit-ubdcc-shared-modules = "==0.0.72"
lucit-ubdcc-shared-modules = "==0.0.73"

[tool.poetry.dev-dependencies]

Expand Down
2 changes: 1 addition & 1 deletion packages/lucit-ubdcc-dcn/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
lucit-ubdcc-shared-modules==0.0.72
lucit-ubdcc-shared-modules==0.0.73
unicorn_binance_local_depth_cache>=2.1.1
4 changes: 2 additions & 2 deletions packages/lucit-ubdcc-dcn/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@

setup(
name=name,
version="0.0.72",
version="0.0.73",
author="LUCIT Systems and Development",
author_email='info@lucit.tech',
url="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-depthcache-cluster",
description="LUCIT UBDCC REST API",
long_description=long_description,
long_description_content_type="text/markdown",
license='LSOSL - LUCIT Synergetic Open Source License',
install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.72'],
install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.73'],
keywords='',
project_urls={
'Howto': 'https://www.lucit.tech/unicorn-binance-depthcache-cluster.html#howto',
Expand Down
4 changes: 2 additions & 2 deletions packages/lucit-ubdcc-mgmt/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lucit-ubdcc-mgmt"
version = "0.0.72"
version = "0.0.73"
description = "LUCIT UBDCC Mgmt Service"
authors = ["LUCIT Systems and Development <info@lucit.tech>"]
license = "LSOSL - LUCIT Synergetic Open Source License"
Expand All @@ -25,7 +25,7 @@ repository = "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-d
[tool.poetry.dependencies]
python = ">=3.12.0"
lucit-licensing-python = ">=1.8.2"
lucit-ubdcc-shared-modules = "==0.0.72"
lucit-ubdcc-shared-modules = "==0.0.73"

[tool.poetry.dev-dependencies]

Expand Down
2 changes: 1 addition & 1 deletion packages/lucit-ubdcc-mgmt/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lucit-ubdcc-shared-modules==0.0.72
lucit-ubdcc-shared-modules==0.0.73
4 changes: 2 additions & 2 deletions packages/lucit-ubdcc-mgmt/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@

setup(
name=name,
version="0.0.72",
version="0.0.73",
author="LUCIT Systems and Development",
author_email='info@lucit.tech',
url="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-depthcache-cluster",
description="LUCIT UBDCC Mgmt",
long_description=long_description,
long_description_content_type="text/markdown",
license='LSOSL - LUCIT Synergetic Open Source License',
install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.72'],
install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.73'],
keywords='',
project_urls={
'Howto': 'https://www.lucit.tech/unicorn-binance-depthcache-cluster.html#howto',
Expand Down
4 changes: 2 additions & 2 deletions packages/lucit-ubdcc-restapi/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lucit-ubdcc-restapi"
version = "0.0.72"
version = "0.0.73"
description = "LUCIT UBDCC REST API"
authors = ["LUCIT Systems and Development <info@lucit.tech>"]
license = "LSOSL - LUCIT Synergetic Open Source License"
Expand All @@ -25,7 +25,7 @@ repository = "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-d
[tool.poetry.dependencies]
python = ">=3.12.0"
lucit-licensing-python = ">=1.8.2"
lucit-ubdcc-shared-modules = "==0.0.72"
lucit-ubdcc-shared-modules = "==0.0.73"

[tool.poetry.dev-dependencies]

Expand Down
2 changes: 1 addition & 1 deletion packages/lucit-ubdcc-restapi/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lucit-ubdcc-shared-modules==0.0.72
lucit-ubdcc-shared-modules==0.0.73
4 changes: 2 additions & 2 deletions packages/lucit-ubdcc-restapi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@

setup(
name=name,
version="0.0.72",
version="0.0.73",
author="LUCIT Systems and Development",
author_email='info@lucit.tech',
url="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-depthcache-cluster",
description="LUCIT UBDCC REST API",
long_description=long_description,
long_description_content_type="text/markdown",
license='LSOSL - LUCIT Synergetic Open Source License',
install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.72'],
install_requires=['lucit-licensing-python>=1.8.2', 'lucit-ubdcc-shared-modules==0.0.73'],
keywords='',
project_urls={
'Howto': 'https://www.lucit.tech/unicorn-binance-depthcache-cluster.html#howto',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
REST_SERVER_PORT_DEV_DCN: int = 42082
REST_SERVER_PORT_DEV_MGMT: int = 42080
REST_SERVER_PORT_DEV_RESTAPI: int = 42081
VERSION: str = "0.0.72"
VERSION: str = "0.0.73"


class App:
Expand Down Expand Up @@ -282,22 +282,6 @@ async def request(url, method, params=None, headers=None, timeout=10) -> dict:
print(f"An error occurred: {error_msg}")
return {"error": str(error_msg)}

@staticmethod
def request_synchronous(url, method, params=None, headers=None, timeout=10) -> dict:
try:
if method == "get":
response = requests.get(url, params=params, headers=headers, timeout=timeout)
elif method == "post":
response = requests.post(url, json=json.dumps(params),
headers={"Content-Type": "application/json"})
else:
raise ValueError("Allowed 'method' values: get, post")
response.raise_for_status()
return response.json()
except requests.exceptions.RequestException as error_msg:
print(f"An error occurred: {error_msg}")
return {"error": error_msg}

async def send_backup_to_node(self, host, port) -> dict:
return await self.request(f"http://{host}:{port}/ubdcc_mgmt_backup", method="post",
params=self.data['db'].get_backup_dict())
Expand Down Expand Up @@ -396,7 +380,7 @@ def start(self) -> None:
if self.llm is not None:
self.llm.close()
else:
self.ubdcc_node_cancellation()
asyncio.run(self.ubdcc_node_cancellation())
if exception_shutdown is True:
if exception_shutdown_error:
self.stdout_msg(f"ERROR: {exception_shutdown_error}", log="critical")
Expand Down Expand Up @@ -467,13 +451,13 @@ async def ubdcc_get_responsible_dcn_addresses(self,
self.stdout_msg(f"Can not catch responsible DCN addresses: {result}", log="error")
return None

def ubdcc_node_cancellation(self):
async def ubdcc_node_cancellation(self):
self.stdout_msg(f"Cancel node registration ...", log="info")
endpoint = "/ubdcc_node_cancellation"
host = self.get_cluster_mgmt_address()
query = f"?uid={self.id['uid']}"
url = host + endpoint + query
result = self.request_synchronous(url=url, method="get")
result = await self.request(url=url, method="get")
if result.get('error_id') is None and result.get('error') is None:
self.stdout_msg(f"Node cancellation successful!", log="info")
return True
Expand Down
2 changes: 1 addition & 1 deletion packages/lucit-ubdcc-shared-modules/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lucit-ubdcc-shared-modules"
version = "0.0.72"
version = "0.0.73"
description = "LUCIT UBDCC Shared Modules"
authors = ["LUCIT Systems and Development <info@lucit.tech>"]
license = "LSOSL - LUCIT Synergetic Open Source License"
Expand Down
2 changes: 1 addition & 1 deletion packages/lucit-ubdcc-shared-modules/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

setup(
name=name,
version="0.0.72",
version="0.0.73",
author="LUCIT Systems and Development",
author_email='info@lucit.tech',
url="https://github.com/LUCIT-Systems-and-Development/unicorn-binance-depthcache-cluster",
Expand Down

0 comments on commit a523f4d

Please sign in to comment.