Skip to content

Parametrizing Solids with Inputs vs Config vs Resource #3064

Answered by sryza
szeleeteo asked this question in Q&A
Discussion options

You must be logged in to vote

@szeleeteo this is a good question. For your situation, it sounds to me like config or resource makes the most sense.

Loading via "input" corresponds to defining a dagster_type_loader . This is useful when you have multiple different solid definitions that do different things, but operate on inputs with the same logical type, and you want a common way of loading those inputs. If I'm understanding correctly, this is not your situation, because you have at most a single solid definition for operating on each input source.

Resources are useful when you want to be able to configure a set of solids all at once. If that's the case for you, and it sounds like it might be, then it might make sense.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by szeleeteo
Comment options

You must be logged in to vote
3 replies
@szeleeteo
Comment options

@schrockn
Comment options

@sryza
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants