tarantool / queue

Create task queues, add and take jobs, monitor failed tasks
Other
237 stars 52 forks source link

Concurrent consumers got same task from queue #46

Closed dmitry-sobolev closed 7 years ago

dmitry-sobolev commented 7 years ago

Hello,

I've tried to create system with one producer and 5 consumers using tarantool queue and later i've noticed that sometimes two workers getting same task. Is there a way to avoid this issue or I just should use another queue for my purposes?

kostja commented 7 years ago

Please provide more details about the problem. Are you using a single master or multi-master set up? Do you use task timeouts? A reproducible test case would be perfect. If you did everything right, you'd never have two workers getting the same task.

dmitry-sobolev commented 7 years ago

I'm using single master and not using timeouts. I am working on test case.

bigbes commented 7 years ago

This tasks have same id?

With best regards, Eugene.

2016-12-03 23:26 GMT+03:00 Dmitry Sobolev notifications@github.com:

I'm using single master and not using timeouts. I am working on test case.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tarantool/queue/issues/46#issuecomment-264663327, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeQFHY_Wt8eFP1zOvpicwhc6rTCWYY8ks5rEdBfgaJpZM4LDVW9 .

dmitry-sobolev commented 7 years ago

This tasks have same id?

Yes.

bigbes commented 7 years ago

Maybe you hadn't ack'ed tasks or used release or have client disconnections?

dmitry-sobolev commented 7 years ago

Maybe you hadn't ack'ed tasks or used release or have client disconnections?

I've ack'ed them, but yes maybe I have disconnection. I'll try to investigate this case.

dmitry-sobolev commented 7 years ago

It seems like these errors were result of errors in my code