Replies: 1 comment 2 replies
-
Hi @asmhack if you have tasks that are shipping work out to external solutions then I would suggest having your task (or a subsequent downstream task) wait on that function call and only continue based on its success. For example the prefect/src/prefect/tasks/prefect/flow_run.py Lines 181 to 191 in 38ec61f If you want to set up your tasks to require manual approval that the Google Cloud Tasks finished then you can also optionally look into the pause/resume functionality in prefect. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have a prefect flow and at some point it submits a lot of tasks into Google Cloud Tasks, so part of work is just delegated to the cloud functions that can be run in parallel and store some data into cloud storage.
Before I start with prefect I just had a sleep() in an infinite while loop to pause the whole linear logic and wait until all task queues would be empty.
Could you please suggest best solution for prefect? Should I just pause the flow like I did or there is better solution for this situation.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions