Skip to content

[13.x] Implement creationTimeOfOldestPendingJob on the QueueFake - #60730

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
jackbayliss:13-ensure-creationTimeOfOldestPendingJob-works-on-queue-fake
Jul 22, 2026
Merged

[13.x] Implement creationTimeOfOldestPendingJob on the QueueFake#60730
taylorotwell merged 1 commit into
laravel:13.xfrom
jackbayliss:13-ensure-creationTimeOfOldestPendingJob-works-on-queue-fake

Conversation

@jackbayliss

@jackbayliss jackbayliss commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

The PR ensures creationTimeOfOldestPendingJob works on the fake, this means when we use it in commands / jobs, we can test it properly, it also means all the InspectedJob classes have a createdAt set, which is what would happen on the real drivers, which is very useful for tests etc.

The fake methods includes delayed jobs, as there's no real "delay" happening cos that's how pushed works atm too.

This now means, all the queue metrics/inspection methods are covered by the fake 🥳

@jackbayliss jackbayliss changed the title [13.x] Implement creationTimeOfOldestPendingJob on the QueueFake [13.x] Implement creationTimeOfOldestPendingJob on the QueueFake Jul 10, 2026
@github-actions

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@jackbayliss
jackbayliss force-pushed the 13-ensure-creationTimeOfOldestPendingJob-works-on-queue-fake branch from ccd1b14 to 7de5e59 Compare July 21, 2026 19:41
@jackbayliss
jackbayliss marked this pull request as ready for review July 21, 2026 20:28
@taylorotwell
taylorotwell merged commit eff1f26 into laravel:13.x Jul 22, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants