From 05c17f3e9c729d09f6ac4e7400d1abeccc028934 Mon Sep 17 00:00:00 2001 From: Vaughn Kottler Date: Mon, 19 Feb 2024 22:30:48 -0600 Subject: [PATCH] 3.6.1 - Fix occasional runtime error --- .github/workflows/python-package.yml | 2 +- README.md | 4 ++-- local/variables/package.yaml | 2 +- pyproject.toml | 2 +- runtimepy/__init__.py | 4 ++-- runtimepy/net/arbiter/base.py | 5 ++++- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 024406ad..9a7a362f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -68,7 +68,7 @@ jobs: - run: | mk python-release owner=vkottler \ - repo=runtimepy version=3.6.0 + repo=runtimepy version=3.6.1 if: | matrix.python-version == '3.11' && matrix.system == 'ubuntu-latest' diff --git a/README.md b/README.md index cc21dff8..4c365226 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ===================================== generator=datazen version=3.1.4 - hash=c012dc3b3a8635d7854d3e29da81c2e7 + hash=63a50931d8ddbf1427523409444f707f ===================================== --> -# runtimepy ([3.6.0](https://pypi.org/project/runtimepy/)) +# runtimepy ([3.6.1](https://pypi.org/project/runtimepy/)) [![python](https://img.shields.io/pypi/pyversions/runtimepy.svg)](https://pypi.org/project/runtimepy/) ![Build Status](https://github.com/vkottler/runtimepy/workflows/Python%20Package/badge.svg) diff --git a/local/variables/package.yaml b/local/variables/package.yaml index 1dc702ac..3f303552 100644 --- a/local/variables/package.yaml +++ b/local/variables/package.yaml @@ -1,5 +1,5 @@ --- major: 3 minor: 6 -patch: 0 +patch: 1 entry: runtimepy diff --git a/pyproject.toml b/pyproject.toml index 8ef3270c..584eb943 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__" [project] name = "runtimepy" -version = "3.6.0" +version = "3.6.1" description = "A framework for implementing Python services." readme = "README.md" requires-python = ">=3.11" diff --git a/runtimepy/__init__.py b/runtimepy/__init__.py index fa719004..057b17d0 100644 --- a/runtimepy/__init__.py +++ b/runtimepy/__init__.py @@ -1,7 +1,7 @@ # ===================================== # generator=datazen # version=3.1.4 -# hash=2fb3bd653a35c2c093f5fa4128631972 +# hash=794afedac84f96e1367d11d72746fad6 # ===================================== """ @@ -10,7 +10,7 @@ DESCRIPTION = "A framework for implementing Python services." PKG_NAME = "runtimepy" -VERSION = "3.6.0" +VERSION = "3.6.1" # runtimepy-specific content. METRICS_NAME = "metrics" diff --git a/runtimepy/net/arbiter/base.py b/runtimepy/net/arbiter/base.py index 06a8febf..f522203f 100644 --- a/runtimepy/net/arbiter/base.py +++ b/runtimepy/net/arbiter/base.py @@ -211,6 +211,8 @@ async def _entry( for name, conn in self._connections.items(): register_env(name, conn.command) + info: Optional[AppInfo] = None + # Run application, but only if all the registered connections are # still alive after initialization. if not check_connections or not any( @@ -275,7 +277,8 @@ async def _entry( self.stop_sig.set() # Summarize results. - info.result(logger=self.logger) + if info is not None: + info.result(logger=self.logger) return result