Skip to content

Commit 84ae474

Browse files
Marick van TuilMarick van Tuil
authored andcommitted
Update versions and implement L13 size queue functions
1 parent 8038b90 commit 84ae474

3 files changed

Lines changed: 51 additions & 6 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"minimum-stability": "dev",
4242
"prefer-stable": true,
4343
"scripts": {
44-
"l11": [
45-
"composer require laravel/framework:11.* orchestra/testbench:9.* --no-interaction --no-update",
44+
"l13": [
45+
"composer require laravel/framework:13.* orchestra/testbench:11.* --no-interaction --no-update",
4646
"composer update --prefer-stable --prefer-dist --no-interaction"
4747
],
4848
"l12": [

matrix.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
{ "driver": "pgsql", "version": "17" }
99
],
1010
"payload": [
11-
{ "queue": "github-actions-laravel11-php82", "laravel": "11.*", "php": "8.2", "testbench": "9.*" },
12-
{ "queue": "github-actions-laravel11-php83", "laravel": "11.*", "php": "8.3", "testbench": "9.*" },
13-
{ "queue": "github-actions-laravel11-php84", "laravel": "11.*", "php": "8.4", "testbench": "9.*" },
1411
{ "queue": "github-actions-laravel12-php82", "laravel": "12.*", "php": "8.2", "testbench": "10.*" },
1512
{ "queue": "github-actions-laravel12-php83", "laravel": "12.*", "php": "8.3", "testbench": "10.*" },
16-
{ "queue": "github-actions-laravel12-php84", "laravel": "12.*", "php": "8.4", "testbench": "10.*" }
13+
{ "queue": "github-actions-laravel12-php84", "laravel": "12.*", "php": "8.4", "testbench": "10.*" },
14+
{ "queue": "github-actions-laravel12-php85", "laravel": "12.*", "php": "8.5", "testbench": "10.*" },
15+
{ "queue": "github-actions-laravel13-php83", "laravel": "13.*", "php": "8.3", "testbench": "11.*" },
16+
{ "queue": "github-actions-laravel13-php84", "laravel": "13.*", "php": "8.4", "testbench": "11.*" },
17+
{ "queue": "github-actions-laravel13-php85", "laravel": "13.*", "php": "8.5", "testbench": "11.*" }
1718
]
1819
}

src/CloudTasksQueue.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,4 +481,48 @@ public function resume(string $queue): void
481481

482482
CloudTasksApi::resume($queueName);
483483
}
484+
485+
/**
486+
* Get the number of pending jobs.
487+
*
488+
* @param string|null $queue
489+
* @return int
490+
*/
491+
public function pendingSize($queue = null)
492+
{
493+
return 0;
494+
}
495+
496+
/**
497+
* Get the number of delayed jobs.
498+
*
499+
* @param string|null $queue
500+
* @return int
501+
*/
502+
public function delayedSize($queue = null)
503+
{
504+
return 0;
505+
}
506+
507+
/**
508+
* Get the number of reserved jobs.
509+
*
510+
* @param string|null $queue
511+
* @return int
512+
*/
513+
public function reservedSize($queue = null)
514+
{
515+
return 0;
516+
}
517+
518+
/**
519+
* Get the creation timestamp of the oldest pending job, excluding delayed jobs.
520+
*
521+
* @param string|null $queue
522+
* @return int|null
523+
*/
524+
public function creationTimeOfOldestPendingJob($queue = null)
525+
{
526+
return null;
527+
}
484528
}

0 commit comments

Comments
 (0)