We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eeaa5c commit da447cdCopy full SHA for da447cd
services/autoscaling/src/simcore_service_autoscaling/utils/utils_docker.py
@@ -521,8 +521,14 @@ async def tag_node(
521
tags: dict[DockerLabelKey, str],
522
available: bool,
523
) -> Node:
524
+ assert node.spec # nosec
525
+ if (node.spec.labels == tags) and (
526
+ (node.spec.availability is Availability.active) == available
527
+ ):
528
+ # nothing to do
529
+ return node
530
with log_context(
- logger, logging.DEBUG, msg=f"tagging {node.id=} with {tags=} and {available=}"
531
+ logger, logging.DEBUG, msg=f"tag {node.id=} with {tags=} and {available=}"
532
):
533
assert node.id # nosec
534
0 commit comments