Αλκιβιάδης Σαββόπουλος
10/29/2024, 7:29 PMMarvin
10/29/2024, 7:30 PMNate
10/29/2024, 7:38 PM@task
def do_work_in_container(**kwargs):
run_deployment(**kwargs)
• just talk to docker directly from python
@task
def do_work_in_container(**kwargs):
docker_client = ...
docker_client.create(...) etc
Αλκιβιάδης Σαββόπουλος
10/29/2024, 7:50 PMNate
10/29/2024, 7:54 PMmain painpoint is that there's so little tutorialsI hear you! working on it - one of the challenges is that this is very true
It seems like there are so many incredible things you can do with Prefectand so covering all the surface area of tutorials can be hard!
Could you elaborate a bit on the first part ? Do you mean to create a flow run from an existing deployment ?( and then treat it like an API almost ? )yes! somewhere else you
prefect deploy
(yaml) or my_flow.deploy(...)
(python) so Prefect knows about the deployment and where it should run
then you can trigger it at any time from the UI, CLI or even other flows with run_deployment
Nate
10/29/2024, 7:54 PM