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.
Create a scheduled/recurring job.
Goal
Set up recurring background tasks.
Context
Admin configuration for periodic tasks.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const CreateScheduledJobContract = defineCommand({
meta: {
key: 'jobs.schedule.create',
version: '1.0.0',
stability: 'stable',
owners: ['platform.jobs'],
tags: ['jobs', 'schedule', 'create'],
description: 'Create a scheduled/recurring job.',
goal: 'Set up recurring background tasks.',
context: 'Admin configuration for periodic tasks.',
},
io: {
input: CreateScheduledJobInput,
output: ScheduledJobModel,
},
policy: {
auth: 'admin',
},
});