https://dagster.io/ logo
n

Noah K

12/05/2020, 12:33 AM
Aside from
configured()
tricks, there's no way to have a solid that will accept both pipeline values and literals, right?
n

nate

12/05/2020, 12:35 AM
I quite often use the solid factory pattern:
Copy code
def create_foo_solid(x):
    @solid
    def foo()
        # .... use x here
    return foo
n

Noah K

12/05/2020, 12:36 AM
Or that 🙂
But I think (eventually) the @pipeline DSL could directly support at least most literals
Would help keep things looking a bit more like normal Python code
Just a whole bunch of isinstance() checks in the DSL evaluator and some strategic deepcopy 😄
s

sandy

12/05/2020, 6:15 AM
I do think there’s room for improvement in passing literals to pipelines
1