diff --git a/src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php b/src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php index 76e10b0f..31e8165a 100644 --- a/src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php +++ b/src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php @@ -136,7 +136,8 @@ public function useCacheStore(?string $name): void public function handleScheduledTaskStarting(ScheduledTaskStarting $event): void { - if (!$event->task) { + // There is nothing for us to track if it's a background task since it will be handled by a separate process + if (!$event->task || $event->task->runInBackground) { return; }