https://dagster.io/ logo
s

s.zepelin

05/27/2020, 6:46 PM
Hi all, I just getting started with dagster and was wondering if someone could answer what is likely a simple question for me: I understand that I can pass an argument to a specific solid via a config file, but how does a solid distinguish which of its parameters it should take from config and which are positional or keyword params from traditional python function syntax?
j

John Mav

05/27/2020, 8:05 PM
You can specify inputs vs configuration in a Solid’s parameters per: https://docs.dagster.io/docs/apidocs/solids e.g.
Copy code
@solid(
	config={
		'config_var': str
	},
	input_defs=[
		InputDefinition(
			name="input_var",
			dagster_type=String,
			default_value='Hello!'
		)
	]
)
def my_solid_with_inputs(context, input_var):
	<http://context.log.info|context.log.info>(input_var)