<@ULVA73B9P> How do I remove a flow from `Deployin...
# ask-marvin
m
@Marvin How do I remove a flow from
Deploying 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.
Copy code
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.
m
Your message was too long by 97 tokens - please shorten it and try again. For reference, here's your message at the allowed limit:
How do I remove a flow from
Deploying 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/python