| 172 | | == pollodm.py == |
| 173 | | |
| 174 | | {{{pollodm.py}}}'s job is to poll the PSPS ODM webservice to establish the status of each batch as it passes through the PSPS system. Gathering this information allows {{{cleanup.py}}} to know when it can delete existing copies of batches. |
| 175 | | |
| | 172 | == pollOdm.py == |
| | 173 | |
| | 174 | {{{pollOdm.py}}}'s job is to poll the PSPS ODM webservice to establish the status of each batch as it passes through the PSPS system. Gathering this information allows {{{cleanup.py}}} to know when it can delete existing copies of batches. |
| | 175 | |
| | 176 | {{{pollOdm.py}}} takes a few extra args, as shown here: |
| | 177 | |
| | 178 | {{{ |
| | 179 | Usage: pollOdm.py <configPath> <P2|ST|OB|all> <unloaded|unmergeworthy|unmerged|all> [hours] |
| | 180 | }}} |
| | 181 | |
| | 182 | Where the first argument sets batch type and the second which PSPS stage to check. So, example usage might be: |
| | 183 | |
| | 184 | {{{ |
| | 185 | ./run.sh pollOdm.py someConfig all all 1 |
| | 186 | }}} |