diff --git a/app/Jobs/NodeStatistics.php b/app/Jobs/NodeStatistics.php index 9546f0ba0..d6815ce6c 100644 --- a/app/Jobs/NodeStatistics.php +++ b/app/Jobs/NodeStatistics.php @@ -4,26 +4,16 @@ namespace App\Jobs; use App\Models\Node; use Illuminate\Bus\Queueable; +use Illuminate\Contracts\Queue\ShouldBeUnique; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; -class NodeStatistics implements ShouldQueue +class NodeStatistics implements ShouldBeUnique, ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; - /** - * Create a new job instance. - */ - public function __construct() - { - // - } - - /** - * Execute the job. - */ public function handle(): void { foreach (Node::all() as $node) {