Public » Miscellaneous » Rediqueuelous A silly experiment with Redis-based, reloading queueing systems
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

add todo and docs

Changeset 50eaff60b202

Parent fe0d346a9b9e

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to 2 files · Browse files at 50eaff60b202 Showing diff from parent fe0d346a9b9e Diff from another changeset...

Change 1 of 1 Show Entire File halp.txt Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@@ -0,0 +1,24 @@
+Rediqueuelous is a stupidly simple Python queueing system. + +To make a task happen, simply lpush a string in the format +"module.function" or "module.function:args", where "args" is a +JSON-encoded dictionary, into the queue called "rediqueue" in your +Redis installation. Rediqueuelous will then call the method +"function" in "module" with "args" passed in as keyword arguments. + +How does Rediqueuelous know where to look for modules? Easy: there's +a hash key called "rediqueue.modules" which maps module names to paths +on the file system. So, for example, if I had a file /foo/printer.py +that I wanted to use in Rediqueuelous, I might issue + + HSET rediqueue.modules printer /foo/printer.py + +at which point I could lpush "printer.whatever" into "rediqueue" and +Rediqueuelous will do the right thing. + +There is a built-in module, called "rediqueuelous", which you can use +to control Rediqueuelous itself. It currently supports two functions: +"quit", which takes no arguments and quits Rediqueuelous, and +"tea_time", which takes a mod=modulename pair, and will load or reload +modulename. This allows you to redefine functions in Rediqueuelous +without restarting the server.
Change 1 of 1 Show Entire File todo.txt Stacked
 
 
 
 
 
1
2
3
@@ -0,0 +1,3 @@
+ * Allow configuring which Redis server is used + * Allow configuring anything at all, really + * Add a Flask-based view into the queue