mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-20 00:33:36 +00:00
Add CLI option to adopt original timed-out Meilisearch task
This commit is contained in:
+10
-1
@@ -199,9 +199,11 @@ def cmd_repair_caption_index(args: argparse.Namespace) -> None:
|
||||
repaired = repair_caption_documents(
|
||||
batch_size=args.batch_size,
|
||||
progress=progress,
|
||||
resume_task_uid=args.resume_task,
|
||||
)
|
||||
print(
|
||||
f"Repair complete: {repaired:,} full documents restored from SQLite. "
|
||||
f"Repair invocation complete: {repaired:,} full documents confirmed "
|
||||
"during this invocation (progress is saved in SQLite). "
|
||||
"No visual embeddings or captions were regenerated."
|
||||
)
|
||||
|
||||
@@ -1044,6 +1046,13 @@ def make_parser() -> argparse.ArgumentParser:
|
||||
"--batch-size", type=int, default=250,
|
||||
help="Documents per Meilisearch repair task (default: 250)",
|
||||
)
|
||||
repair.add_argument(
|
||||
"--resume-task", type=int,
|
||||
help=(
|
||||
"Adopt a known existing first-batch Meilisearch task from the old "
|
||||
"repair implementation, rather than enqueueing it again"
|
||||
),
|
||||
)
|
||||
repair.set_defaults(func=cmd_repair_caption_index)
|
||||
|
||||
jf_test = sub.add_parser("jellyfin-test", help="Verify Jellyfin API connectivity")
|
||||
|
||||
Reference in New Issue
Block a user