You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a reminders system using Redis, Celery Beat, RabbitMQ, Worker
Using Redbeat, I save a reminder in Redis, then Beat picks the reminder, puts it into a queue from where the worker picks it up, and sends the reminder.
My Redis instance is hosted by Upstash and since there are idle times >5 mins, Upstash resets my connection.
To mitigate this, I added a retry_period: -1 argument.
My questions are:
Celery is configured to read from Redis every 5 minutes, this is defined in the DEFAULT_MAX_INTERVAL=300 right?
I am assuming if I didn't see this logger.warning('beat: Retrying Redis connection in %s seconds...', retry_state.next_action.sleep)
line anywhere in my logs, the retry has not happened, right?
To not keep the connection idle, I have added a periodic task that repeats every 4 mins. However this doesn't solve the retry not happening, how best to go about this?
celery==5.2.7 celery-redbeat==2.0.0
The text was updated successfully, but these errors were encountered:
I am using a reminders system using Redis, Celery Beat, RabbitMQ, Worker
Using Redbeat, I save a reminder in Redis, then Beat picks the reminder, puts it into a queue from where the worker picks it up, and sends the reminder.
My Redis instance is hosted by Upstash and since there are idle times >5 mins, Upstash resets my connection.
To mitigate this, I added a
retry_period: -1
argument.My questions are:
logger.warning('beat: Retrying Redis connection in %s seconds...', retry_state.next_action.sleep)
line anywhere in my logs, the retry has not happened, right?
celery==5.2.7
celery-redbeat==2.0.0
The text was updated successfully, but these errors were encountered: