pentangle / backpack-scheduled-monitored-tasks
This is my package backpack-monitored-scheduled-tasks
Requires
- php: ^8.1
- backpack/crud: ^5.0
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.4.3
- spatie/laravel-schedule-monitor: ^3.0
Requires (Dev)
- backpack/generators: ^3.1
- brianium/paratest: ^6.2
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
- vimeo/psalm: ^4.8
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
composer require pentangle/backpack-monitored-scheduled-tasks
Add menu item to sidebar:
php artisan backpack:add-sidebar-content "<li class='nav-item'><a class='nav-link' href='{{ backpack_url('monitored-scheduled-task') }}'><i class='nav-icon la la-tachometer'></i> Monitored scheduled tasks</a></li>"
You can publish and run the migrations with:
php artisan vendor:publish --provider="Spatie\ScheduleMonitor\ScheduleMonitorServiceProvider" --tag="schedule-monitor-migrations" php artisan migrate
You can publish the config file with:
php artisan vendor:publish --provider="Pentangle\BackpackMonitoredScheduledTasks\AddonServiceProvider" --tag="backpack-monitored-scheduled-tasks-config"
This is the contents of the published config file:
return [ /* * The schedule monitor will log each start, finish and failure of all scheduled jobs. * After a while the `monitored_scheduled_task_log_items` might become big. * Here you can specify the amount of days log items should be kept. */ 'delete_log_items_older_than_days' => 30, /* * The date format used for all dates displayed on the output of commands * provided by this package. */ 'date_format' => 'd-m-Y H:i:s', 'models' => [ /* * The model you want to use as a MonitoredScheduledTask model needs to extend the * `Spatie\ScheduleMonitor\Models\MonitoredScheduledTask` Model. */ 'monitored_scheduled_task' => \Pentangle\BackpackMonitoredScheduledTasks\Models\MonitoredScheduledTask::class, /* * The model you want to use as a MonitoredScheduledTaskLogItem model needs to extend the * `Spatie\ScheduleMonitor\Models\MonitoredScheduledTaskLogItem` Model. */ 'monitored_scheduled_log_item' => Spatie\ScheduleMonitor\Models\MonitoredScheduledTaskLogItem::class, ], /* * Oh Dear can notify you via Mail, Slack, SMS, web hooks, ... when a * scheduled task does not run on time. * * More info: https://ohdear.app/cron-checks */ 'oh_dear' => [ /* * You can generate an API token at the Oh Dear user settings screen * * https://ohdear.app/user/api-tokens */ 'api_token' => env('OH_DEAR_API_TOKEN', ''), /* * The id of the site you want to sync the schedule with. * * You'll find this id on the settings page of a site at Oh Dear. */ 'site_id' => env('OH_DEAR_SITE_ID'), /* * To keep scheduled jobs as short as possible, Oh Dear will be pinged * via a queued job. Here you can specify the name of the queue you wish to use. */ 'queue' => env('OH_DEAR_QUEUE'), ], ];
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.