tarantool / queue

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

FR: add method "prolong ttr" #47

Closed aensidhe closed 7 years ago

aensidhe commented 7 years ago

Hello.

We are using queue for passing tasks to background service. Unfortunately, at the moment of task creation exact volume of work is unknown and can vary from task to task on orders of magnitude. I would like to set low TTR on all tasks initially in such way that a majority of tasks will succeed before TTR will expire

But other, larger tasks need to prolong TTR by somehow. And it would be great if this will be done by queue interface, not by some hacks via underlying spaces.

Would you accept this feature and should I start to work on pull request?

bigbes commented 7 years ago

Would you accept this feature and should I start to work on pull request?

Yes, we would.

You may use this code as an inspiration.