https://prefect.io logo
a

Amanda Wee

11/09/2020, 2:17 AM
Hello! Would it be possible to add to the Prefect CLI and/or the Core client an option to create projects only if they don't already exist? My use case is that I intend to create projects and register flows when an ECS task starts up, and then the ECS task will go on to serve as a Prefect agent. The new
idempotency_key
option and
serialized_hash()
method for flow registration makes this really nice, but I'll still get an error for the project creation when the ECS task restarts. I could ignore this error, but then that could be problem if somehow the error is not due to the project already existing, but a genuine failure to create a new project.
j

josh

11/09/2020, 3:52 PM
Yes! I see that you have already opened a PR for this enhancement 🚀
2 Views