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.
Enable or disable a scheduled job.
Goal
Control when recurring tasks run.
Context
Admin control over scheduled tasks.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const ToggleScheduledJobContract = defineCommand({
meta: {
key: 'jobs.schedule.toggle',
version: '1.0.0',
stability: 'stable',
owners: ['platform.jobs'],
tags: ['jobs', 'schedule', 'toggle'],
description: 'Enable or disable a scheduled job.',
goal: 'Control when recurring tasks run.',
context: 'Admin control over scheduled tasks.',
},
io: {
input: ToggleScheduledJobInput,
output: ScheduledJobModel,
},
policy: {
auth: 'admin',
},
});