https://dagster.io/ logo
Title
d

Daniel Kim

07/17/2021, 5:47 PM
Last one for today 🙂 So looks like
config_schema=
is still available for the @op decorator. Will there be a rename for the word "solid" to "op" in the context object and then for to_job()'s
config=
, "solids" will be renamed to "ops"? For example:
context.solid_config['some_value']
will change to
context.op_config['some_value']
and then
my_job = my_graph.to_job(
    name='My_Job',
    config={
        'solids': {
            'expensive_task1': {'config': {'plant_code': 'Plant_Code_123'}},
            'expensive_task2': {'config': {'plant_code': 'Plant_Code_123'}}
        }
    }
)
will be
my_job = my_graph.to_job(
    name='My_Job',
    config={
        'ops': {
            'expensive_task1': {'config': {'plant_code': 'Plant_Code_123'}},
            'expensive_task2': {'config': {'plant_code': 'Plant_Code_123'}}
        }
    }
)
Correct? Or are we keeping the solid/solids references still for some reason?
c

chris

07/17/2021, 10:53 PM
You can currently access config as context.op_config, and a change to the config document that will allow you to use “ops” instead of “solids” will be going out soon.
👍 1