From e54e8fe62527e0982ee01569c4ac971ae92ed646 Mon Sep 17 00:00:00 2001 From: Hunter Gillane Date: Sun, 18 Mar 2012 17:53:26 -0600 Subject: [PATCH 1/4] rename duplicate rake task --- lib/queue_classic/tasks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/queue_classic/tasks.rb b/lib/queue_classic/tasks.rb index e3191ba1..a19bee88 100644 --- a/lib/queue_classic/tasks.rb +++ b/lib/queue_classic/tasks.rb @@ -32,7 +32,7 @@ end desc "Remove queue_classic functions from database." - task :load_functions => :environment do + task :drop_functions => :environment do QC::Queries.drop_functions end end From e435599d0ce77a64a89e23286761be58debdff1b Mon Sep 17 00:00:00 2001 From: Solomon White Date: Mon, 19 Mar 2012 13:21:50 -0600 Subject: [PATCH 2/4] I had to make this change to get the migration to run. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 6b5d052d..a298ab10 100644 --- a/readme.md +++ b/readme.md @@ -93,7 +93,7 @@ class CreateJobsTable < ActiveRecord::Migration def self.up create_table :queue_classic_jobs do |t| - t.strict :q_name + t.string :q_name t.string :method t.text :args t.timestamp :locked_at From 42e1d95b793a03aa7c5152746d28188c035d11e1 Mon Sep 17 00:00:00 2001 From: Gonzalo Saavedra Date: Tue, 20 Mar 2012 15:05:31 -0300 Subject: [PATCH 3/4] Removed old default queue name reference (table name) --- lib/queue_classic/tasks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/queue_classic/tasks.rb b/lib/queue_classic/tasks.rb index a19bee88..4d474c54 100644 --- a/lib/queue_classic/tasks.rb +++ b/lib/queue_classic/tasks.rb @@ -7,7 +7,7 @@ desc "Start a new worker for the (default or $QUEUE) queue" task :work => :environment do QC::Worker.new( - QC::TABLE_NAME, + QC::QUEUE, QC::TOP_BOUND, QC::FORK_WORKER, QC::LISTENING_WORKER, @@ -18,7 +18,7 @@ desc "Returns the number of jobs in the (default or QUEUE) queue" task :length => :environment do puts QC::Worker.new( - QC::TABLE_NAME, + QC::QUEUE, QC::TOP_BOUND, QC::FORK_WORKER, QC::LISTENING_WORKER, From 47db65b274368b980314e36d0d5d71e0fcd82365 Mon Sep 17 00:00:00 2001 From: pcantrell Date: Mon, 26 Mar 2012 13:14:49 -0500 Subject: [PATCH 4/4] Apostrophe fix (possessive "its" has no apostrophe; "it's" is a contraction for "it is") --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index a298ab10..cea26e92 100644 --- a/readme.md +++ b/readme.md @@ -30,7 +30,7 @@ distribute jobs to worker processes, then queue_classic is exactly what you need The Heroku Postgres team uses queue_classic to monitor the health of customer databases. They process 200 jobs per second using a [fugu](https://postgres.heroku.com/pricing) -database. They chose queue_classic because of it's simplicity and reliability. +database. They chose queue_classic because of its simplicity and reliability. ### Cloudapp @@ -320,7 +320,7 @@ worker.start ##### General Idea The worker class (QC::Worker) is designed to be extended via inheritance. Any of -it's methods should be considered for extension. There are a few in particular +its methods should be considered for extension. There are a few in particular that act as stubs in hopes that the user will override them. Such methods include: `handle_failure() and setup_child()`. See the section near the bottom for a detailed descriptor of how to subclass the worker.