source: main/waeup.aaua/trunk/uuid.txt @ 10181

Last change on this file since 10181 was 10120, checked in by Henrik Bettermann, 11 years ago

Fill trunk.

File size: 1.1 KB
Line 
10707f276-b14d-11e2-93a1-8c89a564960d
2------------------------------------------------------------------------
3The value above (and this file) is created and used by the zc.async
4package. It is intended to uniquely identify this software instance when
5it is used to start a zc.async dispatcher.  This allows multiple
6dispatchers, each in its own software instance, to connect to a single
7database to do work.
8
9In order to decide where to look for this file (or to create it, if
10necessary), the module looks in ``os.environ['ZC_ASYNC_UUID']`` for a
11file name.
12
13If you are using zdaemon (http://pypi.python.org/pypi/zdaemon) to
14daemonize your process, you can set this in a zdaemon environment section
15of your zdaemon.conf. Supervisor (http://supervisord.org/) also provides
16this functionality. Other similar tools probably do as well.
17
18If the ``ZC_ASYNC_UUID`` is not found in the environment, it will use
19``os.path.join(os.getgwd(), 'uuid.txt')`` as the file name.
20
21To get a new identifier for this software instance, delete this file,
22restart Python, and import zc.async.instanceuuid.  This file will be
23recreated with a new value.
Note: See TracBrowser for help on using the repository browser.