From cbf7c9c77fafdba257fde783bbb2fa7d65bfbd33 Mon Sep 17 00:00:00 2001 From: funilrys Date: Sat, 12 Oct 2024 01:06:36 +0200 Subject: [PATCH] Fix broken platform breakoff. --- PyFunceble/cli/system/launcher.py | 10 +++++++--- PyFunceble/storage.py | 2 +- version.yaml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/PyFunceble/cli/system/launcher.py b/PyFunceble/cli/system/launcher.py index b4deb955..23b89e12 100644 --- a/PyFunceble/cli/system/launcher.py +++ b/PyFunceble/cli/system/launcher.py @@ -657,6 +657,8 @@ def handle_platform_contribution() -> None: breakoff = initial_breakoff while True: + protocol_data = {} + for next_contract in next( query_tool.pull_contract( PyFunceble.storage.CONFIGURATION.cli_testing.max_workers @@ -685,13 +687,15 @@ def handle_platform_contribution() -> None: if PyFunceble.storage.CONFIGURATION.cli_testing.display_mode.dots: PyFunceble.cli.utils.stdout.print_single_line("S") - time.sleep(breakoff) - - if breakoff < max_breakoff: + if protocol_data: + breakoff = initial_breakoff + elif breakoff < max_breakoff: breakoff += 0.02 else: breakoff = initial_breakoff + time.sleep(breakoff) + for protocol in self.testing_protocol: self.ci_stop_in_the_middle_if_time_exceeded() diff --git a/PyFunceble/storage.py b/PyFunceble/storage.py index 3b5d03d3..30faf27f 100644 --- a/PyFunceble/storage.py +++ b/PyFunceble/storage.py @@ -61,7 +61,7 @@ from PyFunceble.storage_facility import get_config_directory PROJECT_NAME: str = "PyFunceble" -PROJECT_VERSION: str = "4.3.0a4.dev (Blue Duckling: Tulip)" +PROJECT_VERSION: str = "4.3.0a5.dev (Blue Duckling: Tulip)" DISTRIBUTED_CONFIGURATION_FILENAME: str = ".PyFunceble_production.yaml" diff --git a/version.yaml b/version.yaml index d4de41ab..dc9b9d31 100644 --- a/version.yaml +++ b/version.yaml @@ -1,4 +1,4 @@ -current_version: '4.3.0a4.dev (Blue Duckling: Tulip)' +current_version: '4.3.0a5.dev (Blue Duckling: Tulip)' deprecated: - 3.0.21 - 3.1.20