Hi Team, is the `result` parameter in the @task de...
# prefect-server
n
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
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
Where should I add checkpoint flag?
k
@task(checkpoint=False)
n
Is result param not required even when the output of the task is input for the next task in the flow?
k
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
Okay makes sense, thank you!