Hi is there a better way to do what I'm trying to ...
# announcements
b
Hi is there a better way to do what I'm trying to achieve? I'm planning to have 50+ solids configured.
Copy code
with open("./project/environments/solids.yaml") as f:
    solid_names = yaml.full_load(f)["solids"]

@pipeline(
    preset_defs=[
        PresetDefinition.from_pkg_resources(
            "dev_run",
            pkg_resource_defs=["project.environments", "solids.yaml"]            
        )
    ]
)
def pipeline_a():
    for sn in solid_names:
        my_solid.alias(sn)()