diff options
Diffstat (limited to 'contrib/spoolqueue/producer.py')
-rw-r--r-- | contrib/spoolqueue/producer.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/spoolqueue/producer.py b/contrib/spoolqueue/producer.py new file mode 100644 index 00000000..ac6008a7 --- /dev/null +++ b/contrib/spoolqueue/producer.py @@ -0,0 +1,11 @@ +from tasksconsumer import enqueue + +def application(env, sr): + + sr('200 OK', [('Content-Type','text/html')]) + + enqueue(queue='fast', pippo='pluto') + + return "Task enqueued" + + |