Skip to content

Commit

Permalink
Merge pull request #373 from yetisage/master
Browse files Browse the repository at this point in the history
#patch BUG: Fix missing sleep in _watch_resource_loop
  • Loading branch information
ChristianGeie authored Dec 18, 2024
2 parents 677bdd7 + c4920ec commit 5342afb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ def _watch_resource_loop(mode, *args):
except ApiException as e:
if e.status != 500:
logger.error(f"ApiException when calling kubernetes: {e}\n")
sleep(int(os.getenv("ERROR_THROTTLE_SLEEP", 5)))
else:
raise
except ProtocolError as e:
Expand Down

0 comments on commit 5342afb

Please sign in to comment.