web / lib/collections/import-jobs
lib/collections/import-jobs
Defines the Payload CMS collection configuration for Import Jobs.
This collection is the heart of the data import pipeline. Each document represents a single, discrete import job for a specific dataset (or a sheet within a file). It tracks the entire lifecycle of the import process through a series of stages, from initial deduplication to final event creation.
Key responsibilities of this collection include:
- Managing the current processing
stageof the import. - Storing detailed results from each stage, such as duplicate analysis, schema detection, and validation.
- Tracking progress, errors, and final results.
- Orchestrating the pipeline by triggering the next job in the sequence via
afterChangehooks. - Enforcing valid stage transitions to maintain pipeline integrity.
⚠️ Payload CMS Deadlock Prevention This file uses complex hooks with nested Payload operations. See: apps/docs/content/developer-guide/development/payload-deadlocks.mdx
Variables
default
constdefault:CollectionConfig
Last updated on