https://dagster.io/ logo
t

timo

06/09/2020, 2:10 PM
Hi I'm new to dagster. I'm trying to set up a schedule with several solids that depend on the date. In the scheduling tutorial the date is passed through the config to every single solid. Is this how it's meant to be done?
a

alex

06/09/2020, 2:23 PM
another way would be to add a date
resource
that gets configured once and then used by all the solids
a

Auster Cid

06/09/2020, 3:12 PM
One approach Im using for that problem is wraping the solids in a composite solid and mapping the date to each child solid using the config_map_fn
👍 1
t

timo

06/10/2020, 8:19 AM
Thanks a lot. That certainly works. Is there a reason partitions and date is not "globally" available in the context? Like context.date, context.partition?
a

alex

06/10/2020, 1:21 PM
i forget if we had a principled reason or not. Can you file an issue?
2 Views