Adam Roderick
04/02/2024, 7:31 PMA flow named 'pkt-anomaly-detection' and defined at '/builds/datateer/clients/pkt/pipeline/orchestration/pipeline_anomaly_detection.py:15' conflicts with another flow. Consider specifying a unique `name` parameter in the flow definition:
Nate
04/02/2024, 7:49 PMAdam Roderick
04/02/2024, 7:52 PMNate
04/02/2024, 7:52 PMFile "/builds/datateer/clients/dtr/pipeline/./datateer-prefect/datateer_prefect/release/infrastructure.py", line 108, in main
run_shell_command(["prefect", "--no-prompt", "deploy"])
File "/usr/local/lib/python3.9/site-packages/datateer_prefect/tasks/util.py", line 125, in run_shell_command
raise ChildProcessError(os.linesep.join(errors)[:1000]) from None
ChildProcessError: Traceback (most recent call last):
raise self._exception
TypeError: 'NoneType' object is not iterable
An exception occurred.
this is the errorAdam Roderick
04/02/2024, 7:56 PMNate
04/02/2024, 7:57 PMerrors
here is NoneType
raise ChildProcessError(os.linesep.join(errors)[:1000]) from None
where .join
wants it to be iterable
TypeError: 'NoneType' object is not iterable
Adam Roderick
04/02/2024, 8:05 PMNate
04/02/2024, 8:12 PMAdam Roderick
04/02/2024, 10:49 PMAdam Roderick
04/02/2024, 11:56 PMprefect deploy
errors unless the --name
argument is providedNate
04/02/2024, 11:59 PMdatateer-prefect/datateer_prefect/release/infrastructure.py
so I'm likely missing relevant context but in general yeah you need to tell prefect deploy
which deployment you're referring to, unless you add --all
at the end to deploy all flows in your prefect.yaml
Adam Roderick
04/02/2024, 11:59 PMNate
04/03/2024, 12:00 AMprefect deploy
either requires a path/to/file.py:decorated_function
or --name defined-in-prefect-yaml
Nate
04/03/2024, 12:01 AMAdam Roderick
04/03/2024, 12:01 AMprefect --no-prompt deploy
without specifying --name
or --all
Adam Roderick
04/03/2024, 12:01 AMAdam Roderick
04/03/2024, 12:03 AMNate
04/03/2024, 12:04 AM