@@ -29,7 +29,7 @@ Sample configs must not be used in the code.
The main executable of the aggregator module is `data.py`. You can type `./data.py -h` for more help.
```
usage: data.py [-h] [-s] [-t {text,pdf}] JOBID
usage: data.py [-h] [-t {text,pdf}] JOBID
Gets the job information required for generating text or PDF reports and
outputs it in JSON format. Optionaly it stores the job info in DB.
...
...
@@ -39,7 +39,6 @@ positional arguments:
optional arguments:
-h, --help show this help message and exit
-s, --save save batch info of the job in DB (default: False)
-t {text,pdf}, --type {text,pdf}
type of the output (default: text)
...
...
@@ -69,4 +68,8 @@ As an example the following command will output the test data in the `json` form
```
## Export job info
If the `data.py` is called with `-s`(`--save`) flag as `data.py -s JOBID`, then the aggregator will gather a job information with ID `JOBID` from the batch system configured in `/conf/config.py` and save it into the configured database as a `pfit-jobinfo` measurement.
In order to export the job info with `JOBID` you should call `export.py`:
```bash
export.py JOBID
```
Then the aggregator will gather a job information with ID `JOBID` from the batch system configured in `/conf/config.py` and save it into the configured database as a `pfit-jobinfo` and additionally in `pfit-jobinfo-alloc` measurements.