Add retry logic for Hetzner server deletion (resolves #11)#12
Conversation
Enhance server deletion reliability by implementing a retry loop that continues attempting to delete the server if initial requests fail. This helps handle transient API failures and ensures cleanup completion.
|
Why not |
|
I simply wrapped your existing code block inside a do loop, so no extra function was called. We do not need to track any error code at all, the server will get deleted no matter whatever error code was raised. |
|
Regarding your proposed solution with the As we discussed in #10 and #11, |
|
@Cyclenerd would you be implementing the |
|
I will only implement curl retry for deleting the server. If the API is not stable when the server is created, there is no reason to create it. We will make further API requests later i.e. to check the status of the server. |
I saw that the new PR was merged. Has this been implemented in this one? |
Enhanced server deletion reliability by implementing a retry loop that continues attempting to delete the server if the initial request fails. This helps handle transient API failures and ensures that cleanup is completed because of the newly added infinite loop.
Please Complete the Following