Anton L.
04/15/2024, 1:05 PMMarvin
04/15/2024, 1:06 PMpython
from prefect import flow
@flow(name="My Flow")
def my_flow():
# ... your task and flow definitions here ...
2. Run your Python script normally through your command line or Python interpreter:
bash
python my_flow.py
If your flow is trying to communicate with Prefect Cloud or any cloud-based service and you are offline, it will result in errors due to the lack of internet connectivity. So, ensure your tasks within the flow don't require such communication.
For more information about Prefect flows, you may refer to the documentation on flows.
Remember that if you use Prefect Cloud features or services in your flows, you will need an internet connection for those aspects to function. If you need to operate entirely offline, you would avoid using Prefect Cloud features or have an on-premises installation of Prefect Server, which would allow for orchestration without external internet access.
For full explanations on running flows, you can check the Prefect Quickstart Guide despite it being focused on using Prefect Cloud, which is not applicable for fully offline scenarios.