Skip to content

Commit

Permalink
fix: sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Jan 13, 2025
1 parent b175853 commit db76e2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions keep/providers/amazonsqs_provider/amazonsqs_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"""

import dataclasses
import inspect
import logging
import time
import uuid
from datetime import datetime

import boto3
import botocore
import logging
import inspect


import pydantic

from keep.api.models.alert import AlertSeverity, AlertStatus
Expand Down Expand Up @@ -351,6 +351,8 @@ def start_consume(self):
self.__delete_from_queue(receipt=message["ReceiptHandle"])
except Exception as e:
self.logger.error(f"Error processing message: {e}")

time.sleep(0.1)
self.logger.info("Consuming stopped")

def stop_consume(self):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "keep"
version = "0.34.1"
version = "0.34.2"
description = "Alerting. for developers, by developers."
authors = ["Keep Alerting LTD"]
packages = [{include = "keep"}]
Expand Down

0 comments on commit db76e2a

Please sign in to comment.