Laravel Google Cloud Tasks Queue package allows Google Cloud Tasks to be used as the queue driver. This package requires Laravel 6 or higher and supports MySQL 8 and PostgreSQL 14.
'cloudtasks' => [ 'driver' => 'cloudtasks', 'project' => env('STACKKIT_CLOUD_TASKS_PROJECT', ''), 'location' => env('STACKKIT_CLOUD_TASKS_LOCATION', ''), 'handler' => env('STACKKIT_CLOUD_TASKS_HANDLER', ''), 'queue' => env('STACKKIT_CLOUD_TASKS_QUEUE', 'default'), 'service_account_email' => env('STACKKIT_CLOUD_TASKS_SERVICE_EMAIL', ''), // Optional: The deadline in seconds for requests sent to the worker.
Using Cloud Tasks as a Laravel queue driver is fundamentally different than other Laravel queue drivers, like Redis.
When Cloud Tasks calls the application and this package handles the task, we will automatically update the tasks' status, attempts, and possible errors.