calling a task from a callback in java

25 views
Skip to first unread message

sam

unread,
Oct 15, 2012, 5:48:04 PM10/15/12
to google-a...@googlegroups.com
I have an object that fires a callback after a put. The callback then fires a task to do somethings. For some reason, that task then fires the same callback again, resulting in an infinite loop. I verified that my task is not putting that object, so the loop shouldn't be happening. Any ideas?

Vinny P

unread,
Oct 16, 2012, 9:55:21 AM10/16/12
to google-a...@googlegroups.com
Are you registering your callbacks with all kinds, or with just specific kinds?

If you have sessions activated (https://developers.google.com/appengine/docs/java/config/appconfig#Enabling_Sessions) that service generates entities to hold client data. Even task queue and cron job hits cause sessions to be generated. I believe other services also create datastore entities for management purposes.

Make sure you're registering callbacks just for the kinds that need them. If you're doing that, you'll have to post source code so we can track down the problem.

-Vinny P
Reply all
Reply to author
Forward
0 new messages