Download the PHP package digitalclaim/azure-scheduler-laravel without Composer
On this page you can find all versions of the php package digitalclaim/azure-scheduler-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitalclaim/azure-scheduler-laravel
More information about digitalclaim/azure-scheduler-laravel
Files in digitalclaim/azure-scheduler-laravel
Package azure-scheduler-laravel
Short Description Laravel scheduler triggered by Azure Scheduled Functions.
License MIT
Homepage https://github.com/digitalclaim/azure-scheduler-laravel
Informations about the package azure-scheduler-laravel
This is my package azure-scheduler-laravel
Laravel scheduler triggered by Azure Scheduled Functions. Instead of a CronJob the scheduled cloud function will request a callback url which triggers the Laravel scheduler.
This package is inspired by stackkit/laravel-google-cloud-scheduler
Warning: The callback route is rate limited to only one request per limit. Laravel sub-minute tasks are not supported.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
-
[Optional] Whitelist route for maintenance mode. This step is optional, but highly recommended. To allow jobs to keep running if the application is down (
php artisan down
) you must modify thePreventRequestsDuringMaintenance
middleware: - [Optional] Set application RUNNING_IN_CONSOLE (highly recommended). Some Laravel service providers only register their commands if the application is being accessed through the command line (Artisan). Because we are calling Laravel scheduler from a HTTP call, that means some commands may never register, such as the Laravel Scout command. To circumvent this, please add the following to
public/index.php
:
Copy the code here:
- Create a new scheduled Azure Function (nodejs) that triggeres every minute
0 * * * * *
:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Milo Tischler
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of azure-scheduler-laravel with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0