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 6db9349 commit 143ebc5Copy full SHA for 143ebc5
src/Illuminate/Queue/QueueManager.php
@@ -254,6 +254,19 @@ public function isPaused($connection, $queue)
254
->get("illuminate:queue:paused:{$connection}:{$queue}", false);
255
}
256
257
+ /**
258
+ * Indicate that queue workers should not poll for restart or pause signals.
259
+ *
260
+ * This prevents the workers from hitting the application cache to determine if they need to pause or restart.
261
262
+ * @return void
263
+ */
264
+ public function withoutInterruptionPolling()
265
+ {
266
+ Worker::$restartable = false;
267
+ Worker::$pausable = false;
268
+ }
269
+
270
/**
271
* Add a queue connection resolver.
272
*
0 commit comments