HUEY = { "huey_class": "huey.RedisHuey", # Huey implementation to use. "name": DATABASES["default"]["NAME"], # Use db name for huey. "results": True, "store_none": False, "immediate": DEBUG, "utc": True, "blocking": True, # Perform blocking pop rather than poll Redis. "connection": { "host": "localhost", "port": 6379, "db": 0, "connection_pool": None, # Definitely you should use pooling! # ... tons of other options, see redis-py for details. # huey-specific connection parameters. "read_timeout": 1, # If not polling (blocking pop), use timeout. "url": None, # Allow Redis config via a DSN. }, "consumer": { "workers": 1, "worker_type": "thread", "initial_delay": 0.1, # Smallest polling interval, same as -d. "backoff": 1.15, # Exponential backoff using this rate, -b. "max_delay": 10.0, # Max possible polling interval, -m. "scheduler_interval": 1, # Check schedule every second, -s. "periodic": True, # Enable crontab feature. "check_worker_health": True, # Enable worker health checks. "health_check_interval": 1, # Check worker health every second. }, }