We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f89b19c commit 4876d9fCopy full SHA for 4876d9f
composer.json
@@ -22,7 +22,7 @@
22
23
"require": {
24
"php": ">=7.1",
25
- "mle86/wq": "^0.11.0||^1.0.0",
+ "mle86/wq": "^0.13.0||^1.0.0",
26
"ext-redis": "^3.0"
27
}
28
src/WQ/WorkServerAdapter/RedisWorkServer.php
@@ -321,4 +321,16 @@ public function deleteEntry(QueueEntry $entry): void
321
// nop, we already removed the entry from the queue with LPOP
322
323
324
+ public function disconnect(): void
325
+ {
326
+ if ($this->redis) {
327
+ $this->redis->close();
328
+ $this->redis = null;
329
+ }
330
331
+
332
+ public function __destruct()
333
334
+ $this->disconnect();
335
336
0 commit comments