Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/laravel-long-running-tasks-m…
Browse files Browse the repository at this point in the history
…onitor
  • Loading branch information
freekmurze committed Mar 14, 2024
2 parents 16bfd37 + 54a8fde commit 22e8e2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/RestartPendingTasksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function handle(): int

$logItems::query()
->where('status', LogItemStatus::Pending)
->each(function(LongRunningTaskLogItem $logItem) {
->each(function (LongRunningTaskLogItem $logItem) {
$this->comment("Dispatching job for log item {$logItem->id}...");

$logItem->dispatchJob();
Expand Down
2 changes: 1 addition & 1 deletion tests/RestartPendingTasksCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@

Queue::assertPushed(
RunLongRunningTaskJob::class,
fn($job) => $job->longRunningTaskLogItem->id === $logItem->id
fn ($job) => $job->longRunningTaskLogItem->id === $logItem->id
);
});

0 comments on commit 22e8e2a

Please sign in to comment.