Skip to content

Commit 54b0bf1

Browse files
author
Andrei Neagu
committed
GC no longer saves for GUEST
1 parent 2442e60 commit 54b0bf1

File tree

1 file changed

+0
-10
lines changed
  • services/web/server/src/simcore_service_webserver/garbage_collector

1 file changed

+0
-10
lines changed

services/web/server/src/simcore_service_webserver/garbage_collector/_core_orphans.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
from servicelib.common_headers import UNDEFINED_DEFAULT_SIMCORE_USER_AGENT_VALUE
1313
from servicelib.logging_utils import log_catch, log_context
1414
from servicelib.utils import limited_as_completed, limited_gather
15-
from simcore_postgres_database.utils_projects_extentions import ProjectsExtensionsRepo
1615

17-
from ..db.plugin import get_asyncpg_engine
1816
from ..dynamic_scheduler import api as dynamic_scheduler_service
1917
from ..projects._projects_service import (
2018
is_node_id_present_in_any_project_workbench,
@@ -56,14 +54,6 @@ async def _remove_service(
5654
)
5755
)
5856

59-
if (
60-
user_role == UserRole.GUEST
61-
and await ProjectsExtensionsRepo.allows_guests_to_push_states_and_output_ports(
62-
get_asyncpg_engine(app), project_uuid=f"{service.project_id}"
63-
)
64-
):
65-
save_service_state = True
66-
6757
with (
6858
log_catch(_logger, reraise=False),
6959
log_context(

0 commit comments

Comments
 (0)