\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.
This commit is contained in:
parent
696b8f16ff
commit
0dd40dd600
3 changed files with 16 additions and 6 deletions
15
CHANGELOG.md
15
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
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue