Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queue IInvocables with Params #145

Closed
schmitch opened this issue Feb 27, 2020 · 4 comments
Closed

Queue IInvocables with Params #145

schmitch opened this issue Feb 27, 2020 · 4 comments

Comments

@schmitch
Copy link

schmitch commented Feb 27, 2020

Describe the solution you'd like
Same as #128, just for a Queue.
PR: #146

@ryanelian
Copy link

I believe passing parameter to queued Coravel jobs can be done using Queue + Event Broadcast

https://docs.coravel.net/Queuing/#queuing-an-event-broadcast

https://docs.coravel.net/Events/

@schmitch
Copy link
Author

well, first of the events are quite complex. and it also won't work if I need to have multiple running jobs at the same time (which I need). basically I need to schedule many things at the same time. thus a events are m:1 while I need m:n. Which will only work, when passing params to the queue directly.

@jamesmh
Copy link
Owner

jamesmh commented Feb 28, 2020

@ryanelian is correct. There's a past thread on this: #62 (comment)

If you read through, there's various ways to introduce params already. Also this was the catalyst for the QueueBroadcast feature.

Although a dedicated method for queuing with params still may be a handy convenience.

In @schmitch 's case he would have to create a listener that does what his invocable currently does.

@jamesmh
Copy link
Owner

jamesmh commented Mar 31, 2020

#156 fixes this. I ended up using a particular approach that will support future features I have in mind 😊

See https://docs.coravel.net/Queuing/#queue-an-invocable-with-a-payload

@jamesmh jamesmh closed this as completed Mar 31, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants