Skip to content

Commit 6eced47

Browse files
authored
Director: remove validation of services since it is done in the catalog already (#2166)
* remove validation, reduce time by 4x * removed node_validator not used anymore
1 parent 13ed404 commit 6eced47

File tree

2 files changed

+3
-38
lines changed

2 files changed

+3
-38
lines changed

services/director/src/simcore_service_director/rest/handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
from simcore_service_director import exceptions, producer, registry_proxy, resources
1111

12-
from . import node_validator
13-
1412
log = logging.getLogger(__name__)
1513

1614

@@ -51,7 +49,9 @@ async def services_get(
5149
services = await registry_proxy.list_services(
5250
request.app, registry_proxy.ServiceType.DYNAMIC
5351
)
54-
services = node_validator.validate_nodes(services)
52+
# NOTE: the validation is done in the catalog. This entrypoint IS and MUST BE only used by the catalog!!
53+
# NOTE2: the catalog will directly talk to the registry see case #2165 [https://github.com/ITISFoundation/osparc-simcore/issues/2165]
54+
# services = node_validator.validate_nodes(services)
5555
return web.json_response(data=dict(data=services))
5656
except exceptions.RegistryConnectionError as err:
5757
raise web_exceptions.HTTPUnauthorized(reason=str(err))

services/director/src/simcore_service_director/rest/node_validator.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)