You can use the configured() function/decorator to...
# announcements
n
You can use the configured() function/decorator to bind in default values
i
@Noah K Thanks for your answer, but I dont understand. Here is the pipeline decorator function: https://docs.dagster.io/_apidocs/pipeline#pipeline-definitions which attribute is responsible to setup this "partial run_config" ? can you please give me a very simple example, or point me to the documentation? thanks in advance
ok, I think I got it, https://docs.dagster.io/_apidocs/modes-resources#modes here I should explicitly give
I am going to try it
thanks
@Noah K unfortunately I dont understand how should I do this, so please if you have time to send me an example, it would be appreciated thanks
a
since this is the
execution
section - you can use
configured
on the celery executor before you attach it to the mode definition
Copy code
pre_config_celery = configured(celery_executor)({...})
...
ModeDefinition(
 ...
  executor_defs=[pre_config_celery]
)
👍 1
i
aha....omg, i was not able to figure this out 😉
@alex thanks
i
i am checking...
a
yeah its a bit confusing so don’t feel bad
n
Same thing in the end, just different calling styles 🙂