Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.
ReferenceAPI ReferenceLibraryJobsHandlersCreate Schema Version Job

web


web / lib/jobs/handlers/create-schema-version-job

lib/jobs/handlers/create-schema-version-job

Job handler for creating schema versions for both auto-approved and manually-approved schemas.

This job is queued after schema validation (for auto-approved changes) or after manual approval to create the schema version in a separate transaction, avoiding circular dependencies and deadlocks.

Variables

createSchemaVersionJob

const createSchemaVersionJob: object

Type declaration

slug

slug: "create-schema-version" = JOB_TYPES.CREATE_SCHEMA_VERSION

handler()

handler: (context) => Promise<{ output: { skipped: boolean; schemaVersionId?: undefined; }; } | { output: { skipped?: undefined; schemaVersionId: number; }; }>

Parameters
context

JobHandlerContext

Returns

Promise<{ output: { skipped: boolean; schemaVersionId?: undefined; }; } | { output: { skipped?: undefined; schemaVersionId: number; }; }>

Last updated on