fix: ensure utf-8 encoding in jobs.json

This commit is contained in:
zcj1122 2026-05-21 17:19:36 +08:00 committed by Teknium
parent daabb2d445
commit c55f50a5b9
1 changed files with 2 additions and 0 deletions

View File

@ -1294,6 +1294,7 @@ def _save_jobs_unlocked(
{"jobs": jobs, "updated_at": _hermes_now().isoformat()},
f,
indent=2,
ensure_ascii=False,
)
f.flush()
os.fsync(f.fileno())
@ -1362,6 +1363,7 @@ def _save_jobs_unlocked(
{"jobs": jobs, "updated_at": _hermes_now().isoformat()},
f,
indent=2,
ensure_ascii=False,
)
f.flush()
os.fsync(f.fileno())