Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
9 changes: 5 additions & 4 deletions matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.*" }
]
}
44 changes: 44 additions & 0 deletions src/CloudTasksQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}