Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Run flow on prefect cloud without running local agent locally?

$
0
0

I'm trying to deploy my flow but I'don't know what I should do to completely deploy it (serverless).

I'm using the free tier of Prefect Cloud and I have create a storage and process block.

The step I have done :

  • Build deployment
$ prefect deployment build -n reporting_ff_dev-deployment flow.py:my_flow
  • Apply configuration
$ prefect deployment apply <file.yaml>
  • Create block
from prefect.filesystems import LocalFileSystemfrom prefect.infrastructure import Process#STORAGEmy_storage_block = LocalFileSystem(    basepath='~/ff_dev')my_storage_block.save(    name='ff-dev-storage-block',    overwrite=True)#INFRAmy_process_infra = Process(    working_dir='~/_ff_dev_work',)my_process_infra.save(    name='ff-dev-process-infra',    overwrite=True)
  • deploy block
$ prefect deployment build -n <name>  -sb <storage_name> -ib <infra_name>  <entry_point.yml> -a

I know that prefect cloud is a control system rather than a storage medium but as I understand, a store block -> store the code and process code -> run the code. What is the next step to run the flow without local agent ?


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>