From 0dd40dd6004cd370bb59a373674101944803ee20 Mon Sep 17 00:00:00 2001 From: Netkas Date: Thu, 27 Jul 2023 17:13:22 -0400 Subject: [PATCH] `\TamerLib\Classes > JobManager > disconnect()` now disconnects even if the server is still connected, this is to prevent the server from being left in a bad state if the connection is lost. --- CHANGELOG.md | 15 +++++++++++++++ project.json | 2 +- src/TamerLib/Classes/JobManager.php | 5 ----- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de2d66b..bcb8522 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.1.3] - 2023-07-27 + +### Changed + - `\TamerLib\Classes > JobManager > disconnect()` now disconnects even if the server is still connected, this is to + prevent the server from being left in a bad state if the connection is lost. + + + ## [2.1.2] - 2023-07-09 ### Changed @@ -12,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 reached. + ## [2.1.1] - 2023-07-07 ### Fixed @@ -20,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 being dropped. + ## [2.1.0] - 2023-07-07 ### Added @@ -51,6 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 queue while the callback was running. + ## [2.0.1] - 2023-06-30 Minor bugfixes and improvements. @@ -63,6 +74,7 @@ Minor bugfixes and improvements. handled by the client and just be discarded. + ## [2.0.0] - 2023-06-18 This version of TamerLib offers a comprehensive framework for implementing parallel processing in PHP applications. @@ -88,12 +100,15 @@ versions. - Workers can now throw exceptions which are caught and re-thrown on the client side. This allows for robust error handling across different parts of the application. + + ## [1.0.1] - 2022-02-28 ### Added - Added more logging calls for Gearman Client + ## [1.0.0] - 2022-02-09 ### Added diff --git a/project.json b/project.json index 18f47fa..d921fbb 100644 --- a/project.json +++ b/project.json @@ -22,7 +22,7 @@ "description": "TamerLib allows the execution of parallel tasks", "company": "Nosial", "copyright": "Copyright (c) 2022-2023 Nosial, All Rights Reserved", - "version": "2.1.2", + "version": "2.1.3", "uuid": "a365e7d6-a1c0-11ed-b7c7-b9654ed9efa5" }, "build": { diff --git a/src/TamerLib/Classes/JobManager.php b/src/TamerLib/Classes/JobManager.php index e382e27..660fd92 100644 --- a/src/TamerLib/Classes/JobManager.php +++ b/src/TamerLib/Classes/JobManager.php @@ -141,11 +141,6 @@ */ public function disconnect(): void { - if($this->isConnected()) - { - return; - } - Log::debug(Utilities::getName(), sprintf('JobManager disconnecting from %s:%s', $this->server_configuration->getHost(), $this->server_configuration->getPort())); try