debug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user