janmikes / symfony-console-sentry-cron-monitoring
Implementation of Sentry cron monitoring for symfony/console commands
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/janmikes/symfony-console-sentry-cron-monitoring
Requires
- php: ^8.1
- sentry/sentry: ^3.0
- symfony/console: ^6.0
- symfony/event-dispatcher: ^6.0
This package is auto-updated.
Last update: 2025-10-16 13:55:33 UTC
README
- Install package -
composer require janmikes/symfony-console-sentry-cron-monitoring - Register
Janmikes\SymfonyConsoleSentryCronMonitoring\MonitoringConsoleSubscriberservice to your application (must be tagged as event subscriber) - Add
Monitorattributes to your console commands - Profit!
Minimal
#[Monitor('0 */4 * * *', Environment::Production)] class MySuperCoolCommand
Full
#[Monitor(
cronExpression: '0 */4 * * *',
environment: Environment::Production,
checkinMargin: 10,
maxRuntime: 60,
timezone: 'Europe/Prague',
arguments: ['some-arg', 'some-another-arg'],
)]
class MySuperCoolCommand