Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pipe_supertask
-
Labels:
-
Story Points:2
-
Epic Link:
-
Sprint:BG3_F18_11
-
Team:Data Access and Database
Description
Pipeline builder needs to instantiate DatasetTypes which depend on StorageClass (and they both are configured via task config). We want to keep pipeline builder independent of butler but that means that initialization of StorageClassFactory becomes an issue. DM-15850 adds support for loading all standard StorageClasses (which come from a standard YAML config) but any non-standard configuration will become an issue in this approach.
I want to see how we can solve this problem by either pre-loading non-standard config for the factory or avoiding its use entirely.
Attachments
Issue Links
- is triggered by
-
DM-15850 Standard StorageClasses should always be loaded
- Done
Reading through the code I have an impression that things could be made significantly simpler if we delay the instantiation of StorageClass instances until they are actually used (i.e. somewhere in Butler). DatasetType instances can store StorageClass name instead of instance and that should make few things simpler:
Tim Jenness, Jim Bosch, what do think about this idea, am I being too naive?