Fina Silva-Santisteban
02/18/2021, 1:27 AMprefect ecs agent
in a terminal, and then use the prefect dashboard to trigger that run. I’d like to build a standalone app, so have a custom GUI that lets a user input flow parameters and trigger a flow run. I’m imagining that I’ll have to create a prefect ecs agent using the prefect api instead of running it in a separate terminal but I’m not sure how to go about that. Pls let me know of any deployment recipes that fit my use case! 🙏Spencer
02/18/2021, 1:34 AMFina Silva-Santisteban
02/18/2021, 1:37 AMopen terminal->run prefect ecs agent start
. Let’s say I have a file called run_flows.py
, what would the set up of an agent look like in that file? I hope this makes it more clear!Spencer
02/18/2021, 1:39 AMrun_flows.py
script would call the Prefect API with the desired FlowRun
parameters and the agent would eventually pick up those parameters from the API.flow.run()
on the Flow
object itself rather than going through the scheduler/API.nicholas
Fina Silva-Santisteban
02/18/2021, 1:46 AMnicholas
Mariia Kerimova
02/18/2021, 3:11 PMFina Silva-Santisteban
02/18/2021, 4:56 PMnicholas
FROM prefecthq/prefect:latest
# other commands you want to run
Fina Silva-Santisteban
02/19/2021, 4:59 PMcore
or python
attached to the name as well. Since I’m using prefect 0.14.5 locally it seems like that version would make the most sense for us, but there are 5 different images with that version number. Which one would you suggest and why? 🤔nicholas
python
are built with a specific version of python installed (the version is also in the tag) - use those if you need to pin to a specific python version for your code. Otherwise you could use the core
images to get the utils you'll need for your flows (without things like the CLI or Server)Fina Silva-Santisteban
02/19/2021, 5:22 PM