Skip to content

Commit

Permalink
feat: Merge branch 'feature/test' of https://github.com/palad-in/keep
Browse files Browse the repository at this point in the history
…into feature/test
  • Loading branch information
shahargl committed Dec 27, 2024
2 parents d36253d + e66d619 commit 9f44716
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion keep/api/core/demo_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ async def simulate_alerts_async(
logger.info(
"Sleeping for {} seconds before next iteration".format(sleep_interval)
)
# await asyncio.sleep(sleep_interval)


def launch_demo_mode_thread(
Expand Down
3 changes: 1 addition & 2 deletions keep/api/routes/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def discard_future(
},
)
except concurrent.futures.CancelledError:
logger.info(
logger.error(
"Task was cancelled",
extra={
"trace_id": trace_id,
Expand Down Expand Up @@ -347,7 +347,6 @@ def create_process_event_task(
future.add_done_callback(
lambda task: discard_future(trace_id, task, running_tasks, started_time)
)
# bg_tasks.add_task(task)

logger.info("Task added", extra={"trace_id": trace_id})
return str(id(future))
Expand Down
2 changes: 1 addition & 1 deletion keep/workflowmanager/workflowscheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def wrapper(*args, **kwargs):

class WorkflowScheduler:
MAX_SIZE_SIGNED_INT = 2147483647
MAX_WORKERS = 20
MAX_WORKERS = config("KEEP_MAX_WORKFLOW_WORKERS", default="20", cast=int)

def __init__(self, workflow_manager):
self.logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 9f44716

Please sign in to comment.