Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ahinkle's avatar

Delay a job for more than 15 minutes on Vapor?

Hi there! We are working with a flaky 3rd-party API. If it's down, we would like to retry after 1-2h instead of continuously hitting it within that 15-minute window.

Would anyone know of a working solution to allow a delay longer than 15 minutes? Vapor support said they don't have a solution as of right now.

via Vapor Docs:

In addition, a queued job may not have a "delay" greater than 15 minutes.

Currently, we have a scheduled job that retroactively checks if it was missed. It's not ideal, but it works.

It's crossed my mind to have a micro-app on Forge, to ping the app for the job but that smells funny. Checking in here to see if anyone came up with a crafty solution. Thanks!

0 likes
1 reply
martinbean's avatar

@ahinkle I’d create a separate queue for these jobs, and then maybe use job middleware to prevent jobs from being processed until your arbitrary timeout has ended.

Please or to participate in this conversation.