This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add vote queue consumer upstart scripts.

  • Loading branch information...
spladug committed Jun 2, 2012
1 parent 37da8b5 commit 20c126fec19bc14089eb3367a848297d094aa9e5
Showing with 28 additions and 0 deletions.
  1. +14 −0 upstart/reddit-consumer-vote_comment_q.conf
  2. +14 −0 upstart/reddit-consumer-vote_link_q.conf
@@ -0,0 +1,14 @@
+description "process votes cast on comments"
+
+instance $x
+
+stop on runlevel [016]
+
+respawn
+respawn limit 10 5
+
+nice 10
+script
+ . /etc/default/reddit
+ wrap-job paster run --proctitle vote_comment_q$x $REDDIT_INI -c 'from r2.lib.db import queries; queries.process_votes(queries.vote_comment_q)'
+end script
@@ -0,0 +1,14 @@
+description "process votes cast on links"
+
+instance $x
+
+stop on runlevel [016]
+
+respawn
+respawn limit 10 5
+
+nice 10
+script
+ . /etc/default/reddit
+ wrap-job paster run --proctitle vote_link_q$x $REDDIT_INI -c 'from r2.lib.db import queries; queries.process_votes(queries.vote_link_q)'
+end script

0 comments on commit 20c126f

Please sign in to comment.