Constantino Schillebeeckx
02/09/2024, 5:09 PMdeployment_id
- in other words, can I expect it to stay the same for a given flow? If that deployment is deleted and the same flow is re-deployed, will the deploymend_id
be the same as it was?Nate
02/09/2024, 5:10 PMNate
02/09/2024, 5:13 PMPOST /deployments
with a reference to a flow + infra config
you can update the flow entrypoint that this deployment has, so you can change the flow out for a given deploymentNate
02/09/2024, 5:15 PMConstantino Schillebeeckx
02/09/2024, 5:16 PMConstantino Schillebeeckx
02/09/2024, 5:17 PMNate
02/09/2024, 5:18 PMlet's say ive deployed a flow in v2, then I update that flow's tags or schedule or underlying logic - when i go to redeploy it, can I still use that first deployment ID?yes
Nate
02/09/2024, 5:25 PMcurl <https://api.prefect.cloud/hooks/XXXX>
from a flow
⢠that emits an event to your prefect 2 workspace, the events system picks up my.prefect1.flow.emitted.an.event
and because you have this deployment trigger on your prefect 2 deployment, your prefect 2 flow gets kicked off
and theres lots of stuff here, you can put params for the prefect 2 flow in the webhook payload and stuff but this would be a cool way to do event driven stuff in general
alternatively you'd be free to just make a vanilla POST request to /create_flow_run_from_deployment
from prefect 1 land insteadConstantino Schillebeeckx
02/09/2024, 5:51 PM/create_flow_run_from_deployment
or is it /create_flow_run
?Nate
02/09/2024, 5:51 PMcreate_flow_run
effectively just creates the db record