We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dc54e1 commit b2c8b28Copy full SHA for b2c8b28
app/Jobs/Ookla/RunSpeedtestJob.php
@@ -10,6 +10,7 @@
10
use Illuminate\Bus\Batchable;
11
use Illuminate\Contracts\Queue\ShouldQueue;
12
use Illuminate\Foundation\Queue\Queueable;
13
+use Illuminate\Queue\Middleware\WithoutOverlapping;
14
use Illuminate\Support\Arr;
15
use Symfony\Component\Process\Exception\ProcessFailedException;
16
use Symfony\Component\Process\Process;
@@ -32,6 +33,16 @@ public function __construct(
32
33
public Result $result,
34
) {}
35
36
+ /**
37
+ * Get the middleware the job should pass through.
38
+ *
39
+ * @return array<int, object>
40
+ */
41
+ public function middleware(): array
42
+ {
43
+ return [new WithoutOverlapping('run-speedtest')];
44
+ }
45
+
46
/**
47
* Execute the job.
48
*/
0 commit comments