Hey Prefect team I am using edge function in my pr...
# prefect-community
s
Hey Prefect team I am using edge function in my prefect work flow here is code
1
I want the result of each task to pass to another task so that I receive the region object containing the result of each function
that is happening as well
but sometime the final result is with predict_fontsize
but sometimes it is with media_type function
I want region object/variable should contain the output of each function and the want to pass the region object to the region_processing function
I want this to happen while maintaining the parallelism
these functions are containing the aws fargate requests
a
There's a lot to unpack here: 1. You cannot use if/else in Prefect 1.0 - for that, you would need to use conditional tasks such as case - however, this is not the case in Prefect 2.0 - check this for more details 2. You said you want parallelism - for that you would need to use mapping in Prefect 1.0 https://docs.prefect.io/core/concepts/mapping.html 3. Since you want branching + parallelism, check this topic: "How to build conditional logic within mapped tasks?"
👍 1
s
thanks Anna
👍 1
a
@Satnam Singh also just to be sure we understand each other when I say Prefect 2.0 or 1.0, this page can help
s
yes I got it, I will use if else is prefect 2.0
👍 1