-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Add Queue.QueueCancellableInvocableWithPayload method #209
base: master
Are you sure you want to change the base?
Conversation
Implements both ICancellableTask and IInvocableWithPayload<TParams>
Thanks! I'm going to be away for a few weeks most likely, just FYI. Will check this out when things settle down for me 👍 |
Hi, I cannot find QueueCancellableInovcableWithPayload method in Coravel package. Can you help me? |
Waiting for this pull request merge ! |
Thanks again for this. I have some minor suggestions :) What if instead of returning the CancellationToken to the caller, we would add a new method on the
So I think it best to keep cancellation logic internal, so that we have more control over the concurrency, etc. of these things. If the token exists and is not cancelled, then cancel it. Like this existing method does. You won't have to remove the token since that logic already exists whenever the jobs are invoked. By using the concurrent dict you'll just have to make sure you use this method to get access to the token (otherwise, if you used Also, internally it's possible to have the same concurrency issue as mentioned at the beginning of my comment. It might be worth catching What do you think? Did I miss something? Does that make sense? |
More on the comment above, eventually I actually think removing In the other queue methods, we would simply check if the invocable in question implements Doing this right now might make sense - don't create a new method The existing logic, I believe, is susceptible right now to the |
Implements both ICancellableTask and IInvocableWithPayload for Issue #182