# Slow Job Alerts and Replica Commit IDs in Laravel 13.40

DevFeed: [Slow Job Alerts and Replica Commit IDs in Laravel 13.40](<https://devfeed.tech/articles/slow-job-alerts-and-replica-commit-ids-in-laravel-13-40-119076.md>)

Original publisher: [Read original article](<https://laravel-news.com/laravel-13-40-0>)

Author: Paul Redmond

Published: 2026-11-03T23:53:01Z

Content type: release

Language: en

Sources: [Laravel](<https://devfeed.tech/sources/laravel.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [read-replica](<https://devfeed.tech/topics/read-replica.md>)

Tags: [alerts](<https://devfeed.tech/tags/alerts.md>), [commit](<https://devfeed.tech/tags/commit.md>), [ids](<https://devfeed.tech/tags/ids.md>), [job](<https://devfeed.tech/tags/job.md>), [jobs](<https://devfeed.tech/tags/jobs.md>), [lag](<https://devfeed.tech/tags/lag.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [laravel-releases](<https://devfeed.tech/tags/laravel-releases.md>), [middleware](<https://devfeed.tech/tags/middleware.md>), [news](<https://devfeed.tech/tags/news.md>), [queue](<https://devfeed.tech/tags/queue.md>), [read-replica](<https://devfeed.tech/tags/read-replica.md>), [replica](<https://devfeed.tech/tags/replica.md>), [replica-lag](<https://devfeed.tech/tags/replica-lag.md>), [scheduled](<https://devfeed.tech/tags/scheduled.md>), [scheduled-tasks](<https://devfeed.tech/tags/scheduled-tasks.md>), [tasks](<https://devfeed.tech/tags/tasks.md>)

## AI overview

Laravel 13.40.0 adds runtime alerts for queue jobs and scheduled tasks: plain numeric thresholds are milliseconds for jobs and seconds for scheduled tasks, and callbacks run after job attempts or task completion/failure. Database commit IDs let applications check whether replicas have received writes, with optional waiting; support is specified for MySQL with GTIDs, MariaDB with binary logging, and PostgreSQL, though PostgreSQL waiting requires version 19 and other drivers throw. Middleware can now be inserted around built-in middleware, and strict request input casting returns the default for invalid values; strict booleans accept only listed common true/false forms. The release also secures process-driver concurrency results with signed frames, reconnects after transaction connection loss, and rolls back nested transactions to savepoints on lock timeouts or deadlocks.

## Source excerpt

Laravel 13.40 adds callbacks for slow queue jobs and scheduled tasks, commit IDs to check read replica lag, and insertBefore() and insertAfter() for middleware. The post Slow Job Alerts and Replica Commit IDs in Laravel 13.40 appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.