chore: bajar intervalo scheduler a 20 segundos

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-23 12:00:09 -05:00
co-authored by Claude Sonnet 4.6
parent 78e9c31d90
commit 59ee62591c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
<button id="btn-scheduler" onclick="switchTab('scheduler')"
class="tab-btn flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-colors whitespace-nowrap">
<i class="fas fa-sync-alt text-xs"></i> Sync Automático
<span class="text-xs bg-green-100 text-green-700 px-1.5 py-0.5 rounded-full font-semibold">1 min</span>
<span class="text-xs bg-green-100 text-green-700 px-1.5 py-0.5 rounded-full font-semibold">20 seg</span>
</button>
</div>
</div>
@@ -195,7 +195,7 @@ async function pollSchedulerStatus() {
const live = document.getElementById('sched-live');
if (d.running && d.job_exists) {
dot.className = 'w-2 h-2 rounded-full bg-green-400 animate-pulse';
label.textContent = 'Activo — cada 1 minuto';
label.textContent = 'Activo — cada 20 segundos';
label.className = 'text-green-600';
} else {
dot.className = 'w-2 h-2 rounded-full bg-red-400';
+1 -1
View File
@@ -83,7 +83,7 @@ async def startup():
None, origen="scheduler", modo="upsert"
)
_scheduler.add_job(_job_sync, "interval", minutes=1, id="wa_sync_recientes",
_scheduler.add_job(_job_sync, "interval", seconds=20, id="wa_sync_recientes",
max_instances=1, coalesce=True)
_scheduler.start()