mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 17:08:35 +08:00
fix(scheduler): improve outbox job name
This commit is contained in:
@@ -217,7 +217,7 @@ class SchedulerCatalogOwner(_SchedulerOwnerBase):
|
||||
self._register_database_backup_job(config)
|
||||
outbox_job = JobSpec(
|
||||
"outbox_dispatch",
|
||||
"恢复待投递副作用",
|
||||
"重试未完成的后台处理",
|
||||
dispatch_pending_outbox,
|
||||
"outbox",
|
||||
recovery=JobRecoveryPolicy.DURABLE_QUEUE,
|
||||
@@ -228,7 +228,7 @@ class SchedulerCatalogOwner(_SchedulerOwnerBase):
|
||||
self.start,
|
||||
"interval",
|
||||
id="outbox_dispatch",
|
||||
name="恢复待投递副作用",
|
||||
name="重试未完成的后台处理",
|
||||
seconds=30,
|
||||
next_run_time=datetime.now(pytz.timezone(config.timezone)),
|
||||
kwargs={"job_id": "outbox_dispatch"},
|
||||
|
||||
@@ -147,6 +147,9 @@ def test_clear_cache_is_manual_only(monkeypatch):
|
||||
assert "clear_cache" not in scheduled_job_ids
|
||||
assert "clear_cache" in scheduler._jobs
|
||||
assert scheduler._jobs["clear_cache"]["manual"] is True
|
||||
assert scheduler._jobs["outbox_dispatch"]["name"] == "重试未完成的后台处理"
|
||||
outbox_job = next(job for job in background_scheduler.jobs if job["id"] == "outbox_dispatch")
|
||||
assert outbox_job["name"] == "重试未完成的后台处理"
|
||||
assert background_scheduler.started is True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user