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.