Slackbot
08/01/2022, 8:29 PMIdo (Ploomber)
Eduardo
Jakub Bartczuk
08/01/2022, 8:36 PMparams
in pipeline.yaml
⢠set config as dict and pass it in params, but this makes function signature not reflect what is actually neededJakub Bartczuk
08/01/2022, 8:36 PMJakub Bartczuk
08/01/2022, 8:37 PMJakub Bartczuk
08/01/2022, 8:37 PMEduardo
key: value
another: another-value
final: last-value
and your task:
def some_task(key, final):
passs
ploomber could inspect the function's signature and pass key and final (but not another
). thoughts?
the tradeoff is that the pipeline.yaml is not explicit anymore, since we'd have to dynamically pass the params. it'd look something like this:
task:
- source: functions.some_task
params: auto # special value to have ploomber inspect the function signature
Jakub Bartczuk
08/02/2022, 8:51 AMJakub Bartczuk
08/02/2022, 8:52 AMEduardo
I actually tried using configs from other files but this has the problem that ploomber does not see when a config gets updated.you mean using configs for third party libraries? like you use hydra, and change the config but ploomber won't detect the changes?
Other than that, it might be useful to have something like automatic serializationwe have serialization of products. is this what you're looking for? https://docs.ploomber.io/en/latest/user-guide/serialization.html
Eduardo
Jakub Bartczuk
08/03/2022, 2:57 PMJakub Bartczuk
08/03/2022, 2:59 PMJakub Bartczuk
08/03/2022, 2:59 PMJakub Bartczuk
08/03/2022, 2:59 PMEduardo
resources_
for this: you can pass a path to a file and ploomber will look for changes there to re-run a task. the path is also accessible to the task so you can use it for loading the config
https://docs.ploomber.io/en/latest/api/spec.html#tasks-params-resources