ProductImportState
: string
in package
State of an import job:
Uploaded --> Validated | Invalid | Cancelled Validated --> Queued | Cancelled Queued --> Running | Cancelled Running --> Done | Failed Uploaded may go straight to Cancelled: a freshly uploaded job would otherwise have no way out except deletion (the edit form has a cancel button).
Terminal states (no further transitions): Invalid, Done, Failed, Cancelled. Allowed transitions are enforced by ProductImportManager::setState(), not by this enum; the manager is the single source of truth.
Table of Contents
Cases
- Cancelled = 'cancelled'
- Done = 'done'
- Failed = 'failed'
- Invalid = 'invalid'
- Queued = 'queued'
- Running = 'running'
- Uploaded = 'uploaded'
- Validated = 'validated'