We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8667890 commit 7418d93Copy full SHA for 7418d93
Model/SentryCron.php
@@ -37,9 +37,14 @@ public function sendScheduleStatus(Schedule $schedule)
37
{
38
if (!$this->data->isActive() ||
39
!$this->data->isCronMonitoringEnabled() ||
40
- !in_array(
41
- $schedule->getJobCode(),
42
- $this->data->getTrackCrons()
+ !array_reduce(
+ $this->data->getTrackCrons(),
+ fn ($trackCron, $expression) => $trackCron || (
43
+ preg_match('/^\/.*\/[imsu]*$/', $expression) ?
44
+ preg_match($expression, $schedule->getJobCode()) :
45
+ $schedule->getJobCode() === $expression
46
+ ),
47
+ false
48
)
49
) {
50
return;
0 commit comments