libera_utils.aws.constants.ProcessingStepIdentifier#
- class libera_utils.aws.constants.ProcessingStepIdentifier(value)#
Bases:
EnumEnumeration of processing step IDs used in AWS resource naming and processing orchestration
- In orchestration code, these are used as “NodeID” values to identify processing steps:
The processing_step_node_id values used in libera_cdk deployment stackbuilder module and the node names in processing_system_dag.json must match these.
They must also be passed to the ecr_upload module called by some libera_cdk integration tests.
- __init__(*args, **kwds)#
Methods
validate(processing_step)Validate a processing step string used by the DAG or the orchestration system.
dump([chunk_number])Convert the ProcessingStepIdentifier to a string suitable for matching with a DAG key or in the processing orchestration system.
Attributes
Get the manually-configured ECR name for this processing step
l2cfl2_stfadmsl2_surface_fluxl2_firfunfiltspice_azelspice_jpssl1b_radl1b_caml0_jpss_pdsl0_azel_pdsl0_rad_pdsl0_cam_pdsl0_crcal_radcal_cam- dump(chunk_number: int | None = None) str#
Convert the ProcessingStepIdentifier to a string suitable for matching with a DAG key or in the processing orchestration system.
The chunk_number can be specified when the data product represents a PDS file that is typically provided in 12 2-hour chunks per day. In that case, the chunk_number appears as a suffix to the orchestration step identifier
- property ecr_name: str | None#
Get the manually-configured ECR name for this processing step
We name our ECRs in CDK because they are one of the few resources that humans will need to interact with on a regular basis.
- classmethod validate(processing_step: str) tuple[ProcessingStepIdentifier, int | None]#
Validate a processing step string used by the DAG or the orchestration system.
If successful, returns a tuple containing the ProcessingStepIdentifier and the chunk_number, which can be None if the input string does not contain a valid chunk number.