Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

[Proposal] Job-based timeout #290

Closed
djtarazona opened this issue Nov 3, 2016 · 4 comments
Closed

[Proposal] Job-based timeout #290

djtarazona opened this issue Nov 3, 2016 · 4 comments

Comments

@djtarazona
Copy link

Similar to #289, I'd like to specify the timeout for a job on the job class (protected $timeout = 20; // timeout after 20 seconds). In Laravel 5.3, job timeout must be specified when launching the queue daemon. This means I have to set up different queues for different timeouts. I'd rather use different queues for job priority only. By specifying the timeout per job, I could specify a long timeout for jobs that are known to take a long time (perhaps sending an email via SMTP) while using a short timeout for other jobs such as accessing local resources where database queries should be fast.

@tomschlick
Copy link

1000% yes!

@JesseObrien
Copy link

👍 Let's get this pushed.

@themsaid
Copy link
Member

themsaid commented Nov 4, 2016

This is implemented now, you may close the issue :)

@lgalaz
Copy link

lgalaz commented Jan 16, 2019

Is this not available in 5.7?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants