diff --git a/README.md b/README.md index 9e870a2..2c6b2a5 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This package allows you to use Google Cloud Tasks as the queue driver in your La ### Requirements -This package requires Laravel 11 or 12. +This package requires Laravel 12 or 13. ### Installation diff --git a/composer.json b/composer.json index 179f1ec..53a8260 100644 --- a/composer.json +++ b/composer.json @@ -41,8 +41,8 @@ "minimum-stability": "dev", "prefer-stable": true, "scripts": { - "l11": [ - "composer require laravel/framework:11.* orchestra/testbench:9.* --no-interaction --no-update", + "l13": [ + "composer require laravel/framework:13.* orchestra/testbench:11.* --no-interaction --no-update", "composer update --prefer-stable --prefer-dist --no-interaction" ], "l12": [ diff --git a/matrix.json b/matrix.json index eefca90..a3a687e 100644 --- a/matrix.json +++ b/matrix.json @@ -8,11 +8,12 @@ { "driver": "pgsql", "version": "17" } ], "payload": [ - { "queue": "github-actions-laravel11-php82", "laravel": "11.*", "php": "8.2", "testbench": "9.*" }, - { "queue": "github-actions-laravel11-php83", "laravel": "11.*", "php": "8.3", "testbench": "9.*" }, - { "queue": "github-actions-laravel11-php84", "laravel": "11.*", "php": "8.4", "testbench": "9.*" }, { "queue": "github-actions-laravel12-php82", "laravel": "12.*", "php": "8.2", "testbench": "10.*" }, { "queue": "github-actions-laravel12-php83", "laravel": "12.*", "php": "8.3", "testbench": "10.*" }, - { "queue": "github-actions-laravel12-php84", "laravel": "12.*", "php": "8.4", "testbench": "10.*" } + { "queue": "github-actions-laravel12-php84", "laravel": "12.*", "php": "8.4", "testbench": "10.*" }, + { "queue": "github-actions-laravel12-php85", "laravel": "12.*", "php": "8.5", "testbench": "10.*" }, + { "queue": "github-actions-laravel13-php83", "laravel": "13.*", "php": "8.3", "testbench": "11.*" }, + { "queue": "github-actions-laravel13-php84", "laravel": "13.*", "php": "8.4", "testbench": "11.*" }, + { "queue": "github-actions-laravel13-php85", "laravel": "13.*", "php": "8.5", "testbench": "11.*" } ] } \ No newline at end of file diff --git a/src/CloudTasksQueue.php b/src/CloudTasksQueue.php index 1a7ed97..a75628e 100644 --- a/src/CloudTasksQueue.php +++ b/src/CloudTasksQueue.php @@ -481,4 +481,48 @@ public function resume(string $queue): void CloudTasksApi::resume($queueName); } + + /** + * Get the number of pending jobs. + * + * @param string|null $queue + * @return int + */ + public function pendingSize($queue = null) + { + return 0; + } + + /** + * Get the number of delayed jobs. + * + * @param string|null $queue + * @return int + */ + public function delayedSize($queue = null) + { + return 0; + } + + /** + * Get the number of reserved jobs. + * + * @param string|null $queue + * @return int + */ + public function reservedSize($queue = null) + { + return 0; + } + + /** + * Get the creation timestamp of the oldest pending job, excluding delayed jobs. + * + * @param string|null $queue + * @return int|null + */ + public function creationTimeOfOldestPendingJob($queue = null) + { + return null; + } }