https://prefect.io logo
Title
a

Amir Shur

04/18/2022, 11:19 AM
Hi! There's a prefect feature I was looking for but couldn't quite found it and wondered if anyone knows how to achieve the functionality I'm looking for: I'm looking to pause a flow if a certain condition is met, and if so, I want to allow continuing the flow after entering new input file as a parameter. I know there's this: https://docs.prefect.io/core/idioms/pause-for-approval.html but couldn't find the option for more complicated input than approve/disapprove. Any help will be much appreciated, thx!
k

Kevin Kho

04/18/2022, 1:34 PM
I think this blog should be a good example
a

Amir Shur

04/18/2022, 3:29 PM
yes, this is really great, the only thing is missing is the option to add an input to the task after the pause. Is it something that can be done somehow?
k

Kevin Kho

04/18/2022, 3:33 PM
I don’t think the Task concept supports that. You need to make a Flow with a parameter, and then you can trigger it with an event by doing
client.create_flow_run(…)