Navigation Menu

Skip to content

Commit

Permalink
added rudeq client. remove this when it has been added to rudeq
Browse files Browse the repository at this point in the history
  • Loading branch information
purzelrakete committed Nov 3, 2008
1 parent 0c42df3 commit 1978b30
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGES.markdown
@@ -1,6 +1,8 @@
Version 0.4.0
Version 0.3.8
- full support for rudeq
- refactored pollers. now now longer mainly about starling
- refactored starling client, converted to generalized memcachequeue client.
- changed runner script to be more generic

Version 0.3.1, 15.10.08
- fixed to autodiscovery code bugs.
Expand Down
6 changes: 6 additions & 0 deletions README.markdown
Expand Up @@ -168,6 +168,12 @@ Configure Workling to use RudeQ. Add this to your environment:

Workling::Clients::MemcacheQueue.memcache_client_class = RudeQ::Client
Workling::Remote.dispatcher = Workling::Remote::Runners::StarlingRunner.new

Now start the Workling Client:

1 ./script/workling_client start

You're good.

# Using BackgroundJob

Expand Down
11 changes: 11 additions & 0 deletions lib/rude_q/client.rb
@@ -0,0 +1,11 @@
#
# A RudeQ client that behvaes somewhat like memcache-client
#
module RudeQ
class Client
def initialize(*args); super(); end
def set(key, value); RudeQueue.set(key, value); end;
def get(key); RudeQueue.get(key); end;
def stats; ActiveRecord::Base.connection; end
end
end
2 changes: 1 addition & 1 deletion lib/workling.rb
Expand Up @@ -20,7 +20,7 @@ def initialize

mattr_accessor :load_path
@@load_path = File.expand_path(File.join(File.dirname(__FILE__), '../../../../app/workers'))
VERSION = "0.4.0"
VERSION = "0.3.8"

#
# determine the runner to use if nothing is specifically set. workling will try to detect
Expand Down

0 comments on commit 1978b30

Please sign in to comment.