This commit is contained in:
michaela.buzalkova
2025-11-11 07:00:18 +01:00
parent b91ce07d24
commit 08c6f9745f
4 changed files with 427 additions and 9 deletions

View File

@@ -8,12 +8,12 @@ from datetime import datetime
import time
import time, socket
# for _ in range(30):
# try:
# socket.create_connection(("127.0.0.1", 3307), timeout=3).close()
# break
# except OSError:
# time.sleep(10)
for _ in range(30):
try:
socket.create_connection(("127.0.0.1", 3307), timeout=3).close()
break
except OSError:
time.sleep(10)
# ================================
# 🔧 CONFIGURATION
# ================================
@@ -23,7 +23,7 @@ BATCH_SIZE = 100
DONE_LIMIT = 200 # only last 200 DONE
DB_CONFIG = {
"host": "192.168.1.76",
"host": "127.0.0.1",
"port": 3307,
"user": "root",
"password": "Vlado9674+",