<#897 [BUG] Add retries in flytekit for network re...
# flyte-github
a
#897 [BUG] Add retries in flytekit for network related errors Issue created by migueltol22 Describe the bug Intermittent network issues are to be expected. In the case of receiving a network related error response flytekit should retry the same request (e.g. serialization, executing workflow, listing workflows, etc). Example Error to retry on:
Copy code
[2021-04-07T04:45:51Z] 	status = StatusCode.UNAVAILABLE
[2021-04-07T04:45:51Z] 	details = "upstream connect error or disconnect/reset before headers. reset reason: connection failure"
[2021-04-07T04:45:51Z] 	debug_error_string = "{"created":"@1617770750.462629552","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1039,"grpc_message":"upstream connect error or disconnect/reset before headers. reset reason: connection failure","grpc_status":14}"
Expected behavior On Network related error responses Flytekit should retry the request. This retry should follow a specified retry policy whether that be exponential back offs, incremental intervals, randomization or some other retry policy. [Optional] Additional context To Reproduce Steps to reproduce the behavior: 1. 2. Screenshots If applicable, add screenshots to help explain your problem. flyteorg/flyte