Spaces:
Running
Running
Tu Nombre commited on
Commit ·
ac4bf81
1
Parent(s): 65c9ea8
ping cada 6h
Browse files
main.py
CHANGED
|
@@ -10,7 +10,7 @@ async def iniciar_pings():
|
|
| 10 |
import asyncio, httpx
|
| 11 |
async def ping_loop():
|
| 12 |
while True:
|
| 13 |
-
await asyncio.sleep(
|
| 14 |
try:
|
| 15 |
async with httpx.AsyncClient(timeout=15) as client:
|
| 16 |
for email, datos in list(CLIENTES.items()):
|
|
|
|
| 10 |
import asyncio, httpx
|
| 11 |
async def ping_loop():
|
| 12 |
while True:
|
| 13 |
+
await asyncio.sleep(21600) # 6 horas
|
| 14 |
try:
|
| 15 |
async with httpx.AsyncClient(timeout=15) as client:
|
| 16 |
for email, datos in list(CLIENTES.items()):
|