On Oct 8, 6:03 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote:
> As os.getpid is not supported by GAE, is there another API that
> provides a unique (preferably across all of GAE) identifier for the
> process?  I'd like to use this to identify if an incomplete update
> sequence (spanning entity groups, so no it can't be done in a
> transaction) was left hanging by the current process or another, as if
> it was the current it can be immediately restarted, where as if it is
> another, it'll have to wait a time period before continuing the
> sequence.

Because of the distributed nature of App Engine, about the only way
you have of ensuring that something committed/finished to completion
is to use transactions and entities.  You could create an entity group
that tracks your process(es) state and updates it as various stages
are completed.  Remember that there is no guarantee that your process
will run on any given machine across subsequent calls.

Cheers,

pr3d4t0r
http://www.istheserverup.com
http://www.teslatestament.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to