Skip to content

Commit 8e11b77

Browse files
committed
remove infinite loop
1 parent 1a87982 commit 8e11b77

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

robusta_krr/core/integrations/kubernetes/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,7 @@ async def _list_namespaced_or_global_objects_batched(
341341
new_continue_token = error_body.get("metadata", {}).get("continue")
342342
if new_continue_token:
343343
logger.info("Continue token expired for jobs listing. Continuing")
344-
return await self._list_namespaced_or_global_objects_batched(
345-
kind=kind,
346-
all_namespaces_request=all_namespaces_request,
347-
namespaced_request=namespaced_request,
348-
limit=limit,
349-
continue_ref=new_continue_token,
350-
)
344+
return [], new_continue_token
351345
except (json.JSONDecodeError, KeyError):
352346
pass
353347
raise

0 commit comments

Comments
 (0)