Keep retrying until the action succeeds