diff --git a/Common/Server/Services/MonitorProbeService.ts b/Common/Server/Services/MonitorProbeService.ts index ab8b27d42b..73789e528b 100644 --- a/Common/Server/Services/MonitorProbeService.ts +++ b/Common/Server/Services/MonitorProbeService.ts @@ -111,6 +111,10 @@ export class Service extends DatabaseService { AND m."disableActiveMonitoring" = false AND m."deletedAt" IS NULL AND p."deletedAt" IS NULL + AND (p."paymentProviderSubscriptionStatus" IS NULL + OR p."paymentProviderSubscriptionStatus" IN ('active', 'trialing')) + AND (p."paymentProviderMeteredSubscriptionStatus" IS NULL + OR p."paymentProviderMeteredSubscriptionStatus" IN ('active', 'trialing')) ORDER BY mp."nextPingAt" ASC NULLS FIRST LIMIT $3 FOR UPDATE OF mp SKIP LOCKED