OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Get job queue statistics.
Goal
Monitor queue health and backlog.
Context
Admin dashboard monitoring.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const GetQueueStatsContract = defineQuery({
meta: {
key: 'jobs.stats',
version: '1.0.0',
stability: 'stable',
owners: ['platform.jobs'],
tags: ['jobs', 'stats', 'admin'],
description: 'Get job queue statistics.',
goal: 'Monitor queue health and backlog.',
context: 'Admin dashboard monitoring.',
},
io: {
input: null,
output: QueueStatsModel,
},
policy: {
auth: 'admin',
},
});