Changeset 50eaff60b202…
Parent fe0d346a9b9e…
by Benjamin Pollack
Changes to 2 files · Browse files at 50eaff60b202 Showing diff from parent fe0d346a9b9e Diff from another changeset...
|
@@ -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.
|
|
@@ -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
|
Loading...