This commit is contained in:
Your Name
2026-04-17 03:36:03 +08:00
parent 3cc36a054c
commit d3223a75a4
5 changed files with 525 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import logging
import time
from app.core.config import settings
from app.services.sync_push_service import push_runtime_projection_now
from app.services.sync_push_service import pull_detect_task_batch_now, push_runtime_projection_now
logger = logging.getLogger("domaincheck.sync_agent")
@@ -28,6 +28,8 @@ def main() -> None:
try:
ok, message, data = push_runtime_projection_now()
logger.info("sync tick: ok=%s message=%s data=%s", ok, message, data)
pull_ok, pull_message, pull_data = pull_detect_task_batch_now()
logger.info("task pull tick: ok=%s message=%s data=%s", pull_ok, pull_message, pull_data)
except Exception as exc:
logger.exception("sync tick failed: %s", exc)
time.sleep(interval)