答:流水线任务允许您设置重试策略
set_retry(num_retries: int, backoff_duration: str | None = None, backoff_factor: float | None = None, backoff_max_duration: str | None = None) → PipelineTask
例如,
task.set_retry(2)
有关该政策的综合文档,请参阅https://kubeflow-pipelines.readthedocs.io/en/master/source/dsl.html#kfp.dsl.PipelineTask.set_retry