Skip to content

[12.x] Allow down command --retry option to accept datetime values - #58509

Merged
taylorotwell merged 3 commits into
laravel:12.xfrom
alies-dev:fix/down-command-datetime-retry
Jan 28, 2026
Merged

taylorotwell merged 3 commits into
laravel:12.xfrom
alies-dev:fix/down-command-datetime-retry

Conversation

@alies-dev

@alies-dev alies-dev commented Jan 26, 2026 •

Copy link
Copy Markdown
Contributor

This PR enhances the down command's --retry option to accept datetime strings in addition to numeric seconds.

Changes

The --retry option now supports:

  • Numeric seconds (existing behavior): --retry=60
  • Datetime strings (new): --retry="2025-12-31 15:30:00", --retry="tomorrow 14:00", --retry="+2 hours"
  • Unix timestamps: --retry="@1735660200" (the @ prefix is PHP's standard notation for Unix timestamps)

When a datetime is provided, it is converted to the RFC 7231 HTTP-date format as specified for the Retry-After header.

A warning is displayed when a past datetime is provided.

Reference

@alies-dev
alies-dev force-pushed the fix/down-command-datetime-retry branch from ee63081 to 143804b Compare January 26, 2026 15:46
@taylorotwell
taylorotwell merged commit b650785 into laravel:12.x Jan 28, 2026
19 of 69 checks passed
@alies-dev
alies-dev deleted the fix/down-command-datetime-retry branch January 30, 2026 10:34
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