Hi team, Task retries don’t seem to work any more…...
# flyte-support
l
Hi team, Task retries don’t seem to work any more…? Flytekit: 1.13.3 Backend: 1.13 If the url fails for some reason, I don’t see the task actually retrying. I can obviously add http retries as a mitigation but curious why task retries are not working?
Copy code
@task(retries=5)
def get_some_data_from_http() -> List[str]:


    response = requests.get("my url", timeout=20)
    if response.status_code != HTTPStatus.OK:
        raise Exception("Failed to retrieve data")
    # Process and return data....
t
Can you make these FlyteRecoverableException? but that has been the way for a long time.
@glamorous-carpet-83516 maybe the scopes handling caught and re-raised some of them as recoverable?
cc @high-accountant-32689, maybe we should revisit and just make all exceptions recoverable except for specific NonRecoverable ones…
just feel like that would be suboptimal as well.
l
so just change all of these to FlyteRecoverableException ?
t
yes
l
thanks
t
would you say most errors you raise are retriable?
or not retriable? like what would be a better default?
l
that should be good.. most are retriable.. so I have to just go switch them out
t
@little-cricket-84530 just to confirm… you’re on flytekit
1.13.3
? or
1.13.13
?
l
oops.. yes 1.13.13
t
that makes more sense thank you.