This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Send managed queue timeouts only when given - #308
Merged
Merged
Conversation
managed-queue:create sent a 60 second visibility timeout and a 90 second shutdown timeout on every run, from its prompt defaults or its non-interactive fallbacks, and ship's managed queue hard-coded the same values. Laravel Cloud applies custom queue timeouts only for organizations with the advanced managed queues entitlement, and ignores them for every other organization. The command now sends each timeout only when it is passed as an option or answered at the prompt. An empty answer, like a missing option, lets Laravel Cloud choose. ship's queue leaves both to Laravel Cloud.
An empty answer was stored as null, which the form reads as unanswered, so when the API rejected another field the CLI asked for both timeouts again. The answer now stays empty in the form and is turned into no timeout only when the request is built, so a retry asks only for the fields with errors.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the managed queue timeout changes.
No open issues 🎉
What changed in this PR
This PR lets Laravel Cloud choose managed queue timeouts unless users explicitly provide them, avoiding unsolicited custom values that require the advanced managed queues entitlement.
Changes:
- Send timeout values only for explicit options or non-empty interactive answers, preserving zero values.
- Remove hard-coded queue timeouts from
shipand document the default behavior. - Add coverage for omitted and explicit timeouts, empty answers, and validation retries.
| File | Description |
|---|---|
tests/Feature/ShipQueueTest.php |
Verify ship omits both queue timeouts. |
tests/Feature/ManagedQueueCreateTest.php |
Cover optional timeouts, interactive input, retries, and zero values. |
README.md |
Explain timeout defaults and entitlement requirements. |
app/Concerns/ProvisionsQueueWorker.php |
Remove hard-coded timeouts from queue provisioning. |
app/Commands/ManagedQueueCreate.php |
Make timeout prompts optional and omit unset values from requests. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
managed-queue:createsendsvisibility_timeoutandshutdown_timeoutonly when the user gives them:--visibility-timeoutor--shutdown-timeoutis passed. It used to fall back to 60 and 90 seconds.ship's managed queue no longer hard-codes 60 and 90 either.Why
Laravel Cloud applies custom queue timeouts only for organizations with the advanced managed queues entitlement. Every other organization's values are ignored and Laravel Cloud keeps its own, so the CLI sent values most users never chose and that had no effect. Sending only what the user asks for also keeps queue creation working if the API starts rejecting custom timeouts for organizations without the entitlement.
What changes for users
The option descriptions, the prompt hints and the README say this.
Tests
--visibility-timeout=0sends zero and leaves out the shutdown timeout.ship's managed queue sends neither.