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.

jobs.schedule.create

Create a scheduled/recurring job.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.jobs
  • Tags: jobs, schedule, create
  • File: packages/libs/jobs/src/contracts/index.ts
  • field.key.label
    jobs.schedule.create
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    jobs.schedule.create
    field.description.label

    Create a scheduled/recurring job.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.jobs
  • Tags: jobs, schedule, create
  • File: packages/libs/jobs/src/contracts/index.ts
  • field.tags.label
    jobs,schedule,create
    field.owners.label
    platform.jobs
    field.stability.label
    stable

    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',
    	},
    });