Skip to content

Instantly share code, notes, and snippets.

@grahamking
grahamking / redis_queue.py
Created January 26, 2012 22:54
Celery alternative?
"""Task queue using redis.
Redis client:
LPUSH work "say Hello world!"
LPUSH work "log This goes into syslog"
"""
import redis
from multiprocessing import Pool