firevel/cloud-tasks-queue-driver
最新稳定版本:0.1.1
Composer 安装命令:
composer require firevel/cloud-tasks-queue-driver
包简介
Cloud Tasks queue driver for Laravel apps running inside Google App Engine.
README 文档
README
Cloud Tasks queue driver for Laravel apps running inside Google App Engine or Google Cloud Run. Driver is compatible with Firevel and Laravel.
Configuration
Add to your config/queue.php:
'cloudtasks' => [ 'driver' => 'cloudtasks', 'service' => env('GAE_SERVICE'), 'version' => env('GAE_VERSION'), 'route' => env('CLOUD_TASKS_ROUTE', '/_cloudtasks'), 'project' => env('GOOGLE_CLOUD_PROJECT'), 'location' => env('CLOUD_TASKS_LOCATION', 'us-central1'), // Location must match your App Engine project location. 'queue_name' => env('CLOUD_TASKS_QUEUE', 'default'), ], Set QUEUE_CONNECTION to cloudtasks, and update CLOUD_TASKS_LOCATION in your .env file.
If you use a proxy or load balancer that overrides URLs you can set url in the queue config.
Cloud Tasks setup
Create queue using queue.yaml or gcloud (read more).
Example queue.yaml:
queue: - name: default rate: 500/s Example gcloud command:
gcloud tasks queues create default Routing
Inside App Engine routing matching service and version, so your task will always match version it was dispatched from. Inside Cloud Run it will always be handled by promoted version.
统计信息
- 总下载量: 10.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04