Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ryandotsmith/queue_classic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Smith (ace hacker) committed Mar 27, 2012
2 parents 01cecae + 45689d4 commit ae090af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/queue_classic/tasks.rb
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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
6 changes: 3 additions & 3 deletions readme.md
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ae090af

Please sign in to comment.