[google-appengine] Re: unique identifier for server process

2008-10-08 Thread pr3d4t0r
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 group

[google-appengine] Re: unique identifier for server process

2008-10-08 Thread Josh Heitzman
The state of the process is not of interest, just which instance of many processes it is (i.e. there is no process specific state to store and query). I've got side entities all setup so that I can reliably make multi-entity group changes (i.e. processing will continue across requests, even from

[google-appengine] Re: unique identifier for server process

2008-10-09 Thread Tony Arkles
I just used a random number within an import (since imports only happen once per instance, it should persist for the lifetime of the process) On Oct 9, 12:56 am, Josh Heitzman <[EMAIL PROTECTED]> wrote: > The state of the process is not of interest, just which instance of > many processes it is

[google-appengine] Re: unique identifier for server process

2008-10-09 Thread Jon McAlister
A random number computed at startup is your best bet. We intentionally do not provide a way to learn the real process id or the id of the machine. On Oct 8, 11:56 pm, Josh Heitzman <[EMAIL PROTECTED]> wrote: > The state of the process is not of interest, just which instance of > many processes it

[google-appengine] Re: unique identifier for server process

2008-10-09 Thread yejun
Or create an empty datastore object. Its id will be globally unique. On Oct 9, 12:30 pm, Tony Arkles <[EMAIL PROTECTED]> wrote: > I just used a random number within an import (since imports only > happen once per instance, it should persist for the lifetime of the > process) > > On Oct 9, 12:56 a