\App\Http\Controllers\AdminJobCenterController

队列中心控制器

职责:队列监控聚合数据(执行统计 + worker 守护状态)与历史清理的 HTTP 入口, 业务下沉 LogJobService / QueueWorkerService。

┌────────────────── 分区导航(按此顺序阅读)──────────────────┐ 分区 1 · 监控聚合 stats 分区 2 · 历史清理 prune └────────────────────────────────────────────────────────────┘

Summary

Methods
Properties
Constants
__construct()
stats()
prune()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$jobLogService
$workerService
N/A

Properties

$jobLogService

$jobLogService : \App\Services\Admin\LogJobService

Type

LogJobService

$workerService

$workerService : \App\Services\Admin\QueueWorkerService

Type

QueueWorkerService

Methods

__construct()

__construct(\App\Services\Admin\LogJobService  $jobLogService, \App\Services\Admin\QueueWorkerService  $workerService) : mixed

Parameters

\App\Services\Admin\LogJobService $jobLogService
\App\Services\Admin\QueueWorkerService $workerService

Returns

mixed —

stats()

stats() : \Illuminate\Http\JsonResponse

队列监控

监控聚合数据:今日统计、积压、各队列明细、近 7 日趋势、 最近失败记录与 worker 守护状态;worker 失联时事件无感派发 超管站内告警(WriteMessageNotify 监听,窗口内去重)。

Returns

\Illuminate\Http\JsonResponse —

prune()

prune() : \Illuminate\Http\JsonResponse

清理历史记录

成功与失败记录各按站点配置保留天数清理,界面手动清理入口; 启用 Scheduler 的环境可另配每日自动执行。

Returns

\Illuminate\Http\JsonResponse —