Michael Chang
11/25/2024, 8:39 PMDeploying all flows with an existing deployment configuration...
when I run prefect --no-prompt deploy --all
? I renamed the file a flow is in and updated my prefect.yaml but it still tries to deploy under the old name and path.
Traceback (most recent call last):
File "<frozen importlib._bootstrap_external>", line 936, in exec_module
File "<frozen importlib._bootstrap_external>", line 1073, in get_code
File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/app/backend/apps/project_embeddings/flows/sync_project_arena_data_sources.py'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/.venv/lib/python3.11/site-packages/prefect/flows.py", line 1742, in load_flow_from_entrypoint
flow = import_object(entrypoint)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.11/site-packages/prefect/utilities/importtools.py", line 205, in import_object
module = load_script_as_module(script_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.11/site-packages/prefect/utilities/importtools.py", line 168, in load_script_as_module
raise ScriptError(user_exc=exc, path=path) from exc
prefect.exceptions.ScriptError: Script at 'backend/apps/project_embeddings/flows/sync_project_arena_data_sources.py' encountered an exception: FileNotFoundError(2, 'No such file or directory')
I get the above error when trying to deploy my flows.Marvin
11/25/2024, 8:39 PMHow do I remove a flow from``` Traceback (most recent call last): File "<frozen importlib._bootstrap_external>", line 936, in exec_module File "<frozen importlib._bootstrap_external>", line 1073, in get_code File "<frozen importlib._bootstrap_external>", line 1130, in get_data FileNotFoundError: [Errno 2] No such file or directory: '/app/backend/apps/project_embeddings/flows/sync_project_arena_data_sources.py' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/app/.venv/lib/python3.11/site-packages/prefect/flows.py", line 1742, in load_flow_from_entrypoint flow = import_object(entrypoint) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/prefect/utilities/importtools.py", line 205, in import_object module = load_script_as_module(script_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/pythonwhen I runDeploying all flows with an existing deployment configuration...
? I renamed the file a flow is in and updated my prefect.yaml but it still tries to deploy under the old name and path.prefect --no-prompt deploy --all