Skip to content

Commit

Permalink
reconnect should be forced and not evaluate the state variable;
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesrichter committed May 23, 2023
1 parent 7f236de commit d467d0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@
- register docker containers in github registry
### 0.4.4
- removed unwanted 'continue' from koi-worker; added explicit cast for wait time
### 0.4.5
- force a reconnect even of status variable indicates we are online
5 changes: 2 additions & 3 deletions koi_core/api/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,8 @@ def __init__(self, base_url: str, username: str, password: str):
self.online = True

def reconnect(self):
if not self.online:
self.online = True
self.authenticate()
self.online = True
self.authenticate()

def authenticate(self):
if not self.online:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "koi-core"
version = "0.4.4"
version = "0.4.5"
description = "Runtime for the KOI-System including koi-worker"
readme = "README.md"
requires-python = ">=3.8,<3.11"
Expand Down

0 comments on commit d467d0f

Please sign in to comment.