Skip to content

Commit 8700d6d

Browse files
committed
better logging
1 parent f4fd40e commit 8700d6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/autoscaling/src/simcore_service_autoscaling/modules/auto_scaling_core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ async def _assign_tasks_to_current_cluster(
538538

539539
if unassigned_tasks:
540540
_logger.info(
541-
"the current cluster should cope with %s tasks, %s are unnassigned/queued tasks and will need new EC2s",
541+
"the current cluster should cope with %s tasks, %s are unnassigned/queued "
542+
"tasks and need to wait or get new EC2s",
542543
len(tasks) - len(unassigned_tasks),
543544
len(unassigned_tasks),
544545
)
@@ -614,7 +615,8 @@ async def _find_needed_instances(
614615
_logger.exception("Unexpected error:")
615616

616617
_logger.info(
617-
"found following needed instances: %s",
618+
"found following needed %s instances: %s",
619+
len(needed_new_instance_types_for_tasks),
618620
[
619621
f"{i.instance_type.name=}:{i.instance_type.resources} with {len(i.assigned_tasks)} tasks"
620622
for i in needed_new_instance_types_for_tasks

0 commit comments

Comments
 (0)