feat(fulfillment): 新增直播账号履约工作台

This commit is contained in:
yml
2026-11-17 14:44:28 +08:00
parent f8a35ec224
commit 1ca768eba5
30 changed files with 3729 additions and 27 deletions
@@ -22,6 +22,12 @@ from .jobs.douyu_tasks_retention import (
from .jobs.douyu_tasks_retention import (
run_douyu_tasks_retention,
)
from .jobs.platform_fulfillment_lease_reaper import (
JOB_KEY as PLATFORM_FULFILLMENT_LEASE_REAPER_KEY,
)
from .jobs.platform_fulfillment_lease_reaper import (
run_platform_fulfillment_lease_reaper,
)
from .jobs.points_expire import JOB_KEY as POINTS_EXPIRE_KEY
from .jobs.points_expire import run_points_expire_check
from .scheduler import (
@@ -43,6 +49,7 @@ __all__ = [
"CK_HEALTH_KEY",
"CK_RELOGIN_KEY",
"DOUYU_TASKS_RETENTION_KEY",
"PLATFORM_FULFILLMENT_LEASE_REAPER_KEY",
"POINTS_EXPIRE_KEY",
"JobSpec",
"automation_enabled",
@@ -57,6 +64,7 @@ __all__ = [
"run_douyu_tasks_retention",
"run_due_jobs",
"run_job_now",
"run_platform_fulfillment_lease_reaper",
"run_points_expire_check",
"scheduler_status",
"start_scheduler",
@@ -140,3 +148,14 @@ def register_default_jobs() -> None:
run=run_ck_health,
)
)
register_job(
JobSpec(
key=PLATFORM_FULFILLMENT_LEASE_REAPER_KEY,
title="直播账号履约租约回收",
interval_seconds=60,
run_interval_seconds=60,
batch_size=500,
concurrency=1,
run=run_platform_fulfillment_lease_reaper,
)
)