Spaces:
Configuration error
Configuration error
File size: 611 Bytes
e98eb95 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from async_framework import BrokerConfig, RedisConfig, RetryConfig
# Redis configuration for multiple queues
BROKER_CONFIG = BrokerConfig(
redis=RedisConfig(
host="localhost",
port=6036,
password="***************",
db=0,
connection_pool_size=10,
#ssl=True # Enable SSL for Redis Cloud connection
),
retry=RetryConfig(
max_retries=3,
initial_delay=30.0,
max_delay=90.0,
backoff_factor=3.0
),
num_workers=2,
batch_size=5,
polling_interval=1.0,
metrics_port=8000 # Make sure this port is available
) |