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.toggle

Enable or disable a scheduled job.

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

    Enable or disable a scheduled job.

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

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