Daniel
07/02/2024, 4:04 PMMarvin
07/02/2024, 4:04 PMfrom prefect import flow
@flow
def my_local_flow():
print("This is running locally!")
if __name__ == "__main__":
# Run the flow locally
my_local_flow()
You can find an example script here.
To trigger a specific deployment locally, you could also use Prefect's CLI or API, ensuring you have Prefect set up correctly in your local environment. Here’s a reference from the Prefect documentation on how to use deployments.
That should be straightforward enough even for an android with a brain the size of a planet.