gcgov / framework-service-gcgov-cron-monitor
An internal to Garrett County Government plugin that provides access to \gcgov\framework\services\cronMonitor to record cron task runs
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:framework-service
Requires
- php: >=8.1
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2025-03-13 15:47:08 UTC
README
Primary purpose
Adds cron monitor service to gcgov/framework apps
Installation
composer require gcgov/framework-service-gcgov-cron-monitor
- Add service namespace to
/app/app.php
methodregisterFrameworkServiceNamespaces
:gcgov\framework\services\cronMonitor
. Ex:public function registerFrameworkServiceNamespaces(): array { return [ '\gcgov\framework\services\cronMonitor' ]; }
- Add cron monitor api url to
environment.json
inappDictonary.cronMonitorUrl
. Ex:"appDictionary": { "cronMonitorUrl": "https://apps.garrettcounty.local/cron-monitor/" }
Usage
$cronMonitor = new \gcgov\framework\services\cronMonitor\cronMonitor( $cronJobId ); //perform long running cron task $cronMonitor->end();