run(); \Sentry\captureCheckIn( 'mkbh_donate_page_aggregate_subscribers_job', \Sentry\CheckInStatus::ok(), null, $monitorConfig, $checkInId, ); } catch (\Throwable $e) { \Sentry\captureException($e); \Sentry\captureCheckIn( 'mkbh_donate_page_aggregate_subscribers_job', \Sentry\CheckInStatus::error(), null, $monitorConfig, $checkInId, ); } finally { drupal_http_request('https://uptime.betterstack.com/api/v1/heartbeat/UV9d1VJq5knjWuBAJ4ZXicQE'); } } function mkbh_donate_page_mobile_pay_sync_agreements_job() { ini_set('max_execution_time', '-1'); $monitorConfig = new \Sentry\MonitorConfig( \Sentry\MonitorSchedule::crontab('* * * * *'), 5, 5, 'UTC', 2, 1 ); $checkInId = \Sentry\captureCheckIn( "mkbh_donate_page_mobile_pay_sync_agreements_job", \Sentry\CheckInStatus::inProgress(), null, $monitorConfig, ); try { (new Drupal\mkbh_donate_page\Cron\Jobs\MobilePaySyncAgreementsCronJob)->run(); \Sentry\captureCheckIn( "mkbh_donate_page_mobile_pay_sync_agreements_job", \Sentry\CheckInStatus::ok(), null, $monitorConfig, $checkInId, ); } catch (\Throwable $e) { \Sentry\captureException($e); \Sentry\captureCheckIn( "mkbh_donate_page_mobile_pay_sync_agreements_job", \Sentry\CheckInStatus::error(), null, $monitorConfig, $checkInId, ); } finally { drupal_http_request('https://uptime.betterstack.com/api/v1/heartbeat/DrcWbbz22STRuaiMvW6AtVm4'); } }