#Where do I specify how long a job is allowed to run?

20 messages · Page 1 of 1 (latest)

exotic veldt
#

I saw some hints on SO for setting $timeout on the job model, but where do I find this in the docs?

#

I want to set this for a specific job, not the whole worker (and via cli)

runic patio
#

just search in the docs

exotic veldt
#

@runic patio I'm baffled how I have missed this

#

I searched for timeout, but only saw the tries configuration. It's more hidden below

#

Coming from a static typed language where I would just look at tech documentation, is there something like this for laravel?

#

Where I can see every function, class, argument, property, etc?

runic patio
reef rapids
#

It's actually a bit more complicated than you'd think. There's also a retry_after setting on the queue connection, which must be higher than the highest $timeout. Otherwise the job might get released before the $timeout is reached.

exotic veldt
exotic veldt
exotic veldt
runic patio
#

the interface is probably the only concrete definition for it

exotic veldt
#

I can only see this method here

runic patio
#

jobs aren't the most typed thing in the world

exotic veldt
#

yeah, I can see. thanks!