Skip to content

Commit

Permalink
Disable backgrounded scheduled task tracking (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive authored Jan 28, 2025
1 parent 5f48872 commit 50f0f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 50f0f48

Please sign in to comment.