Slackbot
09/03/2022, 1:09 PMEduardo
clients:
File: '{{my_client}}'
then, in your env.prod.yaml:
my_client: clients.s3_client
and your env.yaml:
my_client: none
then you can switch between these two with an env variable: https://docs.ploomber.io/en/latest/user-guide/configuration.html#configuration-dev-prodFeras Salim
09/03/2022, 1:23 PMEduardo
Feras Salim
09/03/2022, 1:26 PMFeras Salim
09/03/2022, 1:26 PMEduardo
Feras Salim
09/04/2022, 1:31 PMTypeError: Expected dotted path spec to be a str or Mapping, got None (type: NoneType)
Feras Salim
09/04/2022, 1:31 PMFile "/home/ec2-user/anaconda3/envs/44/lib/python3.10/site-packages/ploomber/cli/parsers.py", line 495, in load_dag_from_entry_point_and_parser
dag, args = _process_file_dir_or_glob(parser)
File "/home/ec2-user/anaconda3/envs/44/lib/python3.10/site-packages/ploomber/cli/parsers.py", line 447, in _process_file_dir_or_glob
dag = DAGSpec(dagspec_arg, env=env).to_dag()
File "/home/ec2-user/anaconda3/envs/44/lib/python3.10/site-packages/ploomber/spec/dagspec.py", line 484, in to_dag
dag = self._to_dag()
File "/home/ec2-user/anaconda3/envs/44/lib/python3.10/site-packages/ploomber/spec/dagspec.py", line 521, in _to_dag
dps = dotted_path.DottedPath(dotted_path_spec,
File "/home/ec2-user/anaconda3/envs/44/lib/python3.10/site-packages/ploomber/util/dotted_path.py", line 52, in __init__
self._spec = DottedPathSpecModel.from_spec(dotted_path, strict=strict)
File "/home/ec2-user/anaconda3/envs/44/lib/python3.10/site-packages/ploomber/util/dotted_path.py", line 444, in from_spec
Eduardo
tasks:
- source ...
client: ...
or do you have a pipeline-level client?
clients:
File: clients.get_s3_client
I think the task-level won't work but the pipeline one willFeras Salim
09/04/2022, 4:39 PMEduardo
Feras Salim
09/04/2022, 6:13 PM