Add manpages for new scripts.
authorMarko Kreen <markokr@gmail.com>
Thu, 19 Jul 2012 11:15:45 +0000 (14:15 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 19 Jul 2012 11:15:45 +0000 (14:15 +0300)
Also clean up minor issues in common text fragments.

debian/skytools3.docs
debian/skytools3.manpages
doc/Makefile
doc/common.config.txt
doc/common.switches.txt
doc/simple_consumer3.txt [new file with mode: 0644]
doc/simple_local_consumer3.txt [new file with mode: 0644]

index b5dc56224e5896ba5e144b8d7a6fb1287d7f9e56..b68b984263730440a78bec7303a406b3daaeeeba 100644 (file)
@@ -5,3 +5,5 @@ debian/tmp/usr/share/doc/skytools3/skytools3.html
 debian/tmp/usr/share/doc/skytools3/queue_splitter.html
 debian/tmp/usr/share/doc/skytools3/queue_mover.html
 debian/tmp/usr/share/doc/skytools3/londiste3.html
+debian/tmp/usr/share/doc/skytools3/simple_consumer3.html
+debian/tmp/usr/share/doc/skytools3/simple_local_consumer3.html
index a92296f5f8d92e61fbd5950b578ec99ba1cd7408..5e3caae351d5fd6704e3b1b223bf170f314f4d3a 100644 (file)
@@ -3,3 +3,5 @@ debian/tmp/usr/share/man/man1/qadmin.1
 debian/tmp/usr/share/man/man1/londiste3.1
 debian/tmp/usr/share/man/man1/queue_mover3.1
 debian/tmp/usr/share/man/man1/queue_splitter3.1
+debian/tmp/usr/share/man/man1/simple_consumer3.1
+debian/tmp/usr/share/man/man1/simple_local_consumer3.1
index 3937572d5839520268909c589bf822a694a84592..f1a972af630c1165efa5f7bcdc294905c758a9f9 100644 (file)
@@ -14,6 +14,7 @@ DOCHTML = \
        londiste3.html walmgr3.html qadmin.html scriptmgr.html \
        sql-grants.html \
        skytools_upgrade.html queue_mover.html queue_splitter.html \
+       simple_consumer3.html simple_local_consumer3.html \
        howto/londiste3_cascaded_rep_howto.html \
        howto/londiste3_merge_howto.html \
        howto/londiste3_partitioning_howto.html \
@@ -23,7 +24,7 @@ DOCHTML = \
 
 MAN5 =
 MAN1_SFX = scriptmgr.1 skytools_upgrade.1 queue_mover.1 queue_splitter.1
-MAN1 = qadmin.1 pgqd.1 walmgr3.1 londiste3.1
+MAN1 = qadmin.1 pgqd.1 walmgr3.1 londiste3.1 simple_consumer3.1 simple_local_consumer3.1
 
 FQHTML = $(addprefix html/doc/, $(DOCHTML)) $(addprefix html/, $(TOPHTML))
 FQMAN1 = $(addprefix man/, $(MAN1))
index 7a74623f060a2774fa21aefecbea2e54f67e2eda..1575d8cb48394543e663dea848f18be6aa88d50e 100644 (file)
@@ -26,11 +26,11 @@ ifdef::pgq[]
 
 === Common PgQ consumer parameters ===
 
-  pgq_queue_name::
+  queue_name::
     Queue name to attach to.
     No default.
 
-  pgq_consumer_id::
+  consumer_name::
     Consumers ID to use when registering.
     Default: %(job_name)s
 
index 72da7bc366624022d31e49068395a6bd6b52c980..fe5360dad32fbb01675680481217c65aae96aa71 100644 (file)
@@ -14,6 +14,9 @@ Python programs.
   -d, --daemon::
        make program go background
 
+  --ini::
+        show commented template config file.
+
 Following switches are used to control already running process.
 The pidfile is read from config then signal is sent to process
 id specified there.
diff --git a/doc/simple_consumer3.txt b/doc/simple_consumer3.txt
new file mode 100644 (file)
index 0000000..c746f5a
--- /dev/null
@@ -0,0 +1,28 @@
+
+= simple_consumer3(1) =
+
+== NAME ==
+
+simple_consumer3 - PgQ consumer that executes query for each event
+
+== SYNOPSIS ==
+
+  simple_consumer3.py [switches] config.ini 
+
+== DESCRIPTION ==
+
+For each event in batch it will execute query, filling event
+values into it.
+
+Transactionality: query is executed in autocommit mode,
+no batch tracking is done.  That means on failure,
+whole batch is fetched and all events are processed again.
+
+== CONFIG ==
+
+Run `simple_consumer3 --ini` to see commented config template.
+
+== COMMAND LINE SWITCHES ==
+
+include::common.switches.txt[]
+
diff --git a/doc/simple_local_consumer3.txt b/doc/simple_local_consumer3.txt
new file mode 100644 (file)
index 0000000..04c4db5
--- /dev/null
@@ -0,0 +1,28 @@
+
+= simple_local_consumer3(1) =
+
+== NAME ==
+
+simple_local_consumer3 - PgQ consumer that executes query for each row
+
+== SYNOPSIS ==
+
+  simple_local_consumer3.py [switches] config.ini 
+
+== DESCRIPTION ==
+
+For each event in batch it will execute query, filling event
+values into it.
+
+Transactionality: query is executed in autocommit mode,
+completed batch is tracked in local file.  It can be switched
+between nodes in cascaded queue.
+
+== CONFIG ==
+
+Run `simple_local_consumer3 --ini` to see commented config template.
+
+== COMMAND LINE SWITCHES ==
+
+include::common.switches.txt[]
+