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
feat(groups): distributed optimistic lock for updates via database
- Replaced in-memory global _update_in_progress with a new 'locks' database table.
- This prevents duplicate parallel group updates across multiple Cloud Run instances.
- Lock automatically expires (TTL) after 15 minutes to prevent deadlocks if an instance dies.
awaitupdate.message.reply_text("Ya hay una actualización de grupos en progreso (u ocurrió un error reciente). Por favor, esperá unos minutos a que termine o expire.")
229
254
return
230
255
231
-
_update_in_progress=True
232
256
logger.info(f"Manual update of groups triggered by {user_id}")
233
257
awaitupdate.message.reply_text("Actualizando grupos en segundo plano (esto puede demorar varios minutos)...")
0 commit comments