Prescreens input files to queue for form-scheduler gear. Checks to see if a file’s basename suffix matches any of the accepted modules (case-insensitive), and adds queue tags to it. If it does not, reports an error. Otherwise, it then checks if a scheduler gear is pending/running and triggers one if not.
This gear takes two input files:
The gear also takes the following optional input parameters:
| Parameter | Required? | Default | Description |
|---|---|---|---|
accepted_modules |
No | "ENROLL,UDS,FTLD,LBD" |
Comma-deliminated list of accepted modules. Cannot be empty. |
queue_tags |
No | "queued" |
Comma-deliminated list of tags to add to the prescreened file. Cannot be empty. |
dry_run |
No | false |
Whether or not to do a dry run - will verify the file but will not add tags nor trigger a scheduler gear |
The gear does not have any explicit outputs but will add the tags specified in file_tags to the input file and trigger the schedule gear if it is not currently pending/running.
The gear conditionally updates the input file metadata. See the QC Conventions reference for details on the data models and conventions used.
file.info.qc metadata with:
name: "validation"state: "FAIL"data: List of FileError objects describing the screening failureNote: Unlike most other gears, this gear only adds a QC result on failure. Successful screening does not add a QC result.
file_tags config parameter (default: "queued") are added to the input file to mark it for downstream processing by the form scheduler. The gear name is also appended to the tags.