0

I added sample pull queue and added deferred task to pull queue through servlet.

I added another servlet (Lease Servlet) to lease task, which leases 1 task for 5 minutes and just prints how many tasks it leased.

Now I checked by sending request to Lease Servlet within expired time (i.e., 5mins) which I am getting 0 tasks leased which is fine.

But if I lease task after 5 minutes, I am getting 0 tasks leased and got deleted from pull queue.

Is this expected behaviour? I thought the task will return back to pull queue and available.

Please help me.

4

1 回答 1

1

这是由于拉队列的 queue.xml 中的重试参数设置为 1。

于 2015-04-22T14:51:07.460 回答