Naresh M
Naresh M

Reputation: 113

App engine pull queue expired tasks are getting deleted if leased again

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.

Upvotes: 0

Views: 167

Answers (1)

Naresh M
Naresh M

Reputation: 113

It is due to retry parameter set to 1 in queue.xml for the pull queue.

Upvotes: 1

Related Questions