Skip to content

Change attempts column type from tiny to small integer#59718

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
ju-gow:13.x
Apr 16, 2026
Merged

Change attempts column type from tiny to small integer#59718
taylorotwell merged 1 commit into
laravel:13.xfrom
ju-gow:13.x

Conversation

@ju-gow

@ju-gow ju-gow commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Why are jobs restricted to "only" 255 attempts ?

I reached the maximum on a unique job that try to reach an external service, every minute during a full day.

SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'attempts' at row 1 (Connection: mysql, Host: 127.0.0.1, Port: 3306, Database: my_db, SQL: update jobssetreserved_at= 1776316936,attempts= 256 whereid = 10884941)

I think this column can be extended without consequences.

Why are jobs restricted to "only" 255 attempts ? 

I reached the maximum on unique jobs that are repeatedly trying to reach an external service during one full day.

SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'attempts' at row 1 (Connection: mysql, Host: 127.0.0.1, Port: 3306, Database: my_db, SQL: update `jobs` set `reserved_at` = 1776316936, `attempts` = 256 where `id` = 10884941)
@taylorotwell
taylorotwell merged commit 9959a22 into laravel:13.x Apr 16, 2026
54 checks passed
jonagoldman pushed a commit to deplox/laravel-framework that referenced this pull request Apr 30, 2026
Why are jobs restricted to "only" 255 attempts ? 

I reached the maximum on unique jobs that are repeatedly trying to reach an external service during one full day.

SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'attempts' at row 1 (Connection: mysql, Host: 127.0.0.1, Port: 3306, Database: my_db, SQL: update `jobs` set `reserved_at` = 1776316936, `attempts` = 256 where `id` = 10884941)
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