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

Cancel all jobs under a specific queue while multiple queues are in progress #19

Closed
sgpushpaveni opened this issue Dec 7, 2017 · 2 comments

Comments

@sgpushpaveni
Copy link

sgpushpaveni commented Dec 7, 2017

Hello Lucas,

I would request your support for the below scenario.

I have set up the download queue as below

Initiated one queue with queueName and tag (q1) which in turn create multiple jobs with the job name and tag name. Tag name(tag_q1) is same for all the jobs under the first queue (q1)

Initiated 2nd queue with queueName and tag (q2) which in turn create multiple jobs with the job name and tag name. Tag name(tag_q2) is same for all the jobs under the 2nd queue (q2)

Both queues are running in parallel, now I have to delete q1 and its jobs with tag name tag_q1.

I tried to cancel the jobs using the "cancelOperations(tag:"tag_q1"), but its not cancelling the job even one single job.

Kindly share your comments on how to this situation with SwiftQueue.

lucas34 added a commit that referenced this issue Dec 7, 2017
@lucas34
Copy link
Owner

lucas34 commented Dec 7, 2017

Hi,

By not canceled do you mean "onRemove()" is not called when you cancel the job ?
All jobs will be referenced from the SwiftQueueManager. Are you calling cancel on the same instance ?

I updated the tests to add the behaviour you mentioned. I'm not able to reproduce.

@sgpushpaveni
Copy link
Author

Hello Lucas, Thanks for the sample test cases and got your point on the same instance to be used.

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

2 participants