https://prefect.io logo
Title
n

Nivi Mukka

09/21/2021, 11:00 PM
Hi Team, is the
result
parameter in the @task decorator for defining tasks in a flow script mandatory? I am using the
gcs_result
method to save the task results but running into a weird error when its a mapped task trying to write results at the same time I think. this never happened before.
1/3
2/3
3/3
k

Kevin Kho

09/21/2021, 11:02 PM
Ah this is the google API rate limiting you though. result is not required on our end. You can do
checkpoint=False
This is one of the reasons we have task run concurrency limits on cloud
👍 1
n

Nivi Mukka

09/21/2021, 11:03 PM
Where should I add checkpoint flag?
k

Kevin Kho

09/21/2021, 11:03 PM
@task(checkpoint=False)
n

Nivi Mukka

09/21/2021, 11:03 PM
Is result param not required even when the output of the task is input for the next task in the flow?
k

Kevin Kho

09/21/2021, 11:04 PM
It’s not. That result is to persist the task output. The downside is that when you restart the flow, there’s nothing to load to continue from failure. Does that make sense?
n

Nivi Mukka

09/21/2021, 11:04 PM
Okay makes sense, thank you!