OSDN Git Service

Added initializer to force Resque to wath the post_receive queue
authorAriejan de Vroom <ariejan@ariejan.net>
Mon, 23 Jan 2012 08:46:59 +0000 (09:46 +0100)
committerAriejan de Vroom <ariejan@ariejan.net>
Mon, 23 Jan 2012 08:46:59 +0000 (09:46 +0100)
config/initializers/gitlabhq/30_resque_queues.rb [new file with mode: 0644]

diff --git a/config/initializers/gitlabhq/30_resque_queues.rb b/config/initializers/gitlabhq/30_resque_queues.rb
new file mode 100644 (file)
index 0000000..5b0087a
--- /dev/null
@@ -0,0 +1 @@
+Resque.watch_queue(PostReceive.instance_variable_get("@queue"))