rs_workflows/storage_configuration.md
Module for managing storage configuration.
This module defines the StorageConfig class, which is responsible for loading and parsing storage configuration from a JSON file. It establishes mappings for product-specific storage, default unit storage, and pipeline storage, and resolves storage credentials using provided secrets (through prefect block)
Each storage entry in the configuration file must declare a kind field
indicating the storage backend type:
obs- object storage (s3-compatible), resolved via secrets (prefect block)shared_disk- shared filesystem mounted into the processing pod. Admin will provide the shared disk the users can use, thus, thewill reflect the path on the processing node where the shared disk is mounted. Here, only the ${JOB_IDENTIFIER} variable is added (an UUID generated once per StorageConfig instance). But, with a future story (TODO), this storage configuration shall be read only from the prefect block, and not from the current storage_configuration.json file. local_disk- local filesystem on the processing node
StorageConfig
A class to load and query the storage_configuration.json file.
Source code in docs/rs-client-libraries/rs_workflows/storage_configuration.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
job_identifier
property
Return the UUID used as JOB_IDENTIFIER for this flow run.
get_all_storage_names()
Return a list of all defined storage names.
Source code in docs/rs-client-libraries/rs_workflows/storage_configuration.py
172 173 174 175 176 177 178 179 | |
get_disk_storage(storage_name)
Return the disk storage configuration for a given storage name.
Source code in docs/rs-client-libraries/rs_workflows/storage_configuration.py
162 163 164 | |
get_storage_for_pipeline_section(section)
Get storage for a pipeline section (pipeline_input, pipeline_output, other, etc.)
Source code in docs/rs-client-libraries/rs_workflows/storage_configuration.py
148 149 150 | |
get_storage_for_specific_product(product_name)
Return the storage name for a specific product.
Source code in docs/rs-client-libraries/rs_workflows/storage_configuration.py
138 139 140 141 142 | |
get_storage_for_unit_section(section)
Get storage for a unit section (input_products, output_products, etc.)
Source code in docs/rs-client-libraries/rs_workflows/storage_configuration.py
144 145 146 | |
get_storage_kind(storage_name)
Return the kind ('obs', 'shared_disk', 'local_disk') for a given storage name.
Source code in docs/rs-client-libraries/rs_workflows/storage_configuration.py
166 167 168 169 170 | |
get_store_params(storage_name)
Return the store parameters for a given storage name (e.g., 's3', 'my_shared_disk_1', etc.).
Source code in docs/rs-client-libraries/rs_workflows/storage_configuration.py
152 153 154 155 156 157 158 159 160 | |