ligolw_publish_threaded_dqxml_dqsegdb

Overview

Publishing client used to publish DQMXML (usually produced by DMT) from a set of directories to the DQSEGDB server. This publisher supports grouping multiple input files together, and then pushing data to the database either one flag:version at a time or pushing data in a threaded manner.

Also supports a start time and end time argument to restrict the range of input data accepted.

Please see Python help documentation for all input arguments.

Example call to function:

ligolw_publish_threaded_dqxml_dqsegdb –segment-url http://slwebtest.virgo.infn.it –state-file=/home/rfisher/DQSEGDB/DQSEGDBClient/var/spool/L-DQ_Segments_long_test.xml –pid-file=/home/rfisher/DQSEGDB/DQSEGDBClient/var/run/L-DQ_Segments.pid –log-file=/home/rfisher/DQSEGDB/DQSEGDBClient/var/log/L-DQ_Segments.log –input-directory=/archive/frames/dmt/ER4/DQ/L1 –log-level DEBUG -m 60 -c 20 -e 105819443

Help message

$ ligolw_publish_threaded_dqxml_dqsegdb --help
Usage: ligolw_publish_threaded_dqxml_dqsegdb [OPTIONS]

Publishes XML files into the segment database

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -t PROTOCOL://HOST, --segment-url=PROTOCOL://HOST
                        connect to ldbd on PROTOCOL://HOST
  -s FILE, --state-file=FILE
                        read published and excluded segments from FILE
  -f FILE, --segments-file=FILE
                        read list of segments to publish from FILE
  -P FILE, --pid-file=FILE
                        use FILE as process lock file
  -D DIR, --input-directory=DIR
                        look for input files in DIR
  -l FILE, --log-file=FILE
                        use FILE as log file
  -L LEVEL, --log-level=LEVEL
                        set logging level to LEVEL
  -d, --dry-run         
  -b start_time, --start-time=start_time
                        Manual start time window, used with state file to
                        determine publish window by start=max(manual start
                        time, state file start time)
  -e end_time, --end-time=end_time
                        Manual end time window, used with state file to
                        determine publish window by end=min(manual end time,
                        current time)
  -m multiple_files, --multiple-files=multiple_files
                        Setting to control the number of DQXML files batched
                        together before the data is sent to the dqsegdb,
                        defaults to 1.
  -c thread_count, --thread-count=thread_count
                        Setting to control the number of threads used when the
                        data is sent to the dqsegdb, defaults to 1.