Use case. :
I want to automate the flow, while automating the flow i want to choose my custom condition like some dropdown which will be coming from some api.
Is it possible ?
can i write flow directly on prefect ?
Regarding API-based event-driven workflows, check this post:
There are a couple of ways how you could approach that problem.
1. State-based execution with signals
If you look more closely at what sensors are doing, they are polling for some state (e.g. whether a file arrived in S3/SFTP) and if the condition is not met, the sensor sleeps and tries again in a couple of seconds/minutes later.
If you want to implement something similar in Prefect, you could leverage the RETRY signal to implement such polling. Here is an example checking if “example_file.c…
If you are just getting started with Prefect, check this topic:
We highly encourage you to get started with Prefect 2.0 and Cloud 2.0 ! Your feedback as an early adopter would be incredibly valuable and appreciated.
At the time of writing, both Prefect 2.0 and Cloud 2.0 will remain under active development in beta for the next several months, with a number of major features yet to come.
That’s why for mission-critical production workloads, we would encourage you to explore Prefect 1.0, sign up for a free tier of Prefect Cloud and get your mission-critical f…
You would need to install Prefect via pip, write Python code to create your flow, then register to schedule it.
I highly encourage you to try this Prefect 2.0 getting started guide: