feat(system): add runtime task queue observability dashboard for system admins
Expose live asynq queue depths and worker-pool concurrency via a new SystemAdmin API and settings UI, so operators can monitor parsing/wiki backlog without Redis CLI access.
This commit is contained in:
@@ -120,6 +120,12 @@ func (f fakeTaskInspector) HasQueuedTasksForKnowledge(
|
||||
return f.queued[knowledgeID], nil
|
||||
}
|
||||
|
||||
func (f fakeTaskInspector) QueueStats(
|
||||
_ context.Context,
|
||||
) ([]types.QueueStat, bool, error) {
|
||||
return nil, false, nil
|
||||
}
|
||||
|
||||
func newHousekeepingSvcForTest(db *gorm.DB) *HousekeepingService {
|
||||
return newHousekeepingSvcWithInspector(db, fakeTaskInspector{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user