What is the `Deployer` API equivalent of running `...
# ask-metaflow
b
What is the
Deployer
API equivalent of running
python parameter_flow.py step-functions trigger
? I know I can:
Copy code
deployed_flow = deployer.step_functions().create(...)

deployed_flow.trigger()
However how can I just say "trigger whatever the latest deployed version of the flow is". So
trigger()
without
create()
. My use case is that I want some code to trigger a step-function that is currently deployed without implicitly having to deploy my own version of it.
1
d
There is a function called
from_deployment
but (a) it’s not yet documented and (b) it’s not implemented for step-functions (though it seems to be for argo-workflows) which is what you are looking for (see: https://github.com/Netflix/metaflow/blob/c7a3b8ae4ddf771010a1abad15c1688fe7bf2109/[…]w/plugins/aws/step_functions/step_functions_deployer_objects.py). @brainy-truck-72938 for more context and update (I am not sure if implementing this function is in the works)
❤️ 1
b
Okay thanks! I suppose I can fallback to just calling
python flow.py step-functions trigger
via os.subprocess for now