From e7c6daad3ed9c106a164271e9fa593b7fff4d919 Mon Sep 17 00:00:00 2001 From: anders-albert Date: Wed, 1 Jan 2025 12:56:49 +0100 Subject: [PATCH] docs; better docs --- .../_cdf_tk/loaders/_resource_loaders/function_loaders.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cognite_toolkit/_cdf_tk/loaders/_resource_loaders/function_loaders.py b/cognite_toolkit/_cdf_tk/loaders/_resource_loaders/function_loaders.py index bff0d0691..bc936df86 100644 --- a/cognite_toolkit/_cdf_tk/loaders/_resource_loaders/function_loaders.py +++ b/cognite_toolkit/_cdf_tk/loaders/_resource_loaders/function_loaders.py @@ -158,8 +158,9 @@ def dump_resource(self, resource: Function, local: dict[str, Any]) -> dict[str, and isinstance(local.get(key), float) and local[key] < dumped[key] ): - # On Azure and AWS, the server sets the CPU and Memory to the default values, if the user - # pass in a lower value. This should not trigger a redeploy. + # On Azure and AWS, the server sets the CPU and Memory to the default values if the user + # pass in lower values. We set this to match the local to avoid triggering a redeploy. + # Note the user will get a warning about this when the function is created. dumped[key] = local[key] for key in ["indexUrl", "extraIndexUrls"]: # Only in write (request) format of the function