Changes between Version 226 and Version 227 of ippToPsps
- Timestamp:
- Apr 2, 2012, 2:39:50 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ippToPsps
v226 v227 140 140 141 141 Because it is possible, and usual, to run multiple versions of {{{loader.py}}} (in order to speed up loading time), the method to begin processing a new batch is part of a critical section. This simply means that the 'batch' table in the {{{ippToPsps}}} database is locked by a client looking for a new item to process, then released afterwards, ensuring that two separate {{{loader.py}}} instances do not attempt to process the same item. 142 143 === Creating and publishing an 'IN' batch === 144 145 Once special use of {{{loader.py}}} is when it is necessary to create an initialization batch, used when created a new PSPS survey. {{{loader.py}}} is run the usual way, but with one extra argument, like this: 146 147 {{{ 148 ./run.sh loader.py someConfig init 149 }}} 150 151 This will produce an IN batch, publish it, then stop (the IN-batch MySQL tables will also be updated in the local scratch database). 142 152 == pollodm.py == 143 153
