Skip to content

Commit 6783713

Browse files
committed
Disable backgrounded scheduled task tracking
1 parent 5f48872 commit 6783713

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ public function useCacheStore(?string $name): void
136136

137137
public function handleScheduledTaskStarting(ScheduledTaskStarting $event): void
138138
{
139-
if (!$event->task) {
139+
// There is nothing for us to track if it's a background task since it will be handled by a separate process
140+
if (!$event->task || $event->task->runInBackground) {
140141
return;
141142
}
142143

0 commit comments

Comments
 (0)