Add available CLI options for queued jobs in code #47544
Unanswered
therecluse26
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Aren't said options already available? Also, you can extend job classes and add those parameters there? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there! Currently, there appears to be no way to pass through options like timeouts and max attempts to queued jobs in code. Normally, in an environment where every job is written by me, I could just add a
$timeout
property to the job class, but with jobs from external packages, all I can do is request that they add a timeout to the job class (and this timeout likely wouldn't apply in the same way to every user. so there would have to be some negotiation).Instead, I think it'd be very helpful to add the ability to manually pass these options through to jobs at runtime via things like the
dispatch()
helper, theBus::chain
method, etc. That way, users can tweak package job settings at-will in code.A few possible ideas for how this could be implemented:

Beta Was this translation helpful? Give feedback.
All reactions