From ff8b0713e1b59934985438b575d3d00a4796b120 Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Wed, 11 Oct 2023 17:02:09 +0200 Subject: [PATCH] fix (DiracX Sandboxstore): assign output SB --- .../WorkloadManagementSystem/Service/SandboxStoreHandler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/DIRAC/WorkloadManagementSystem/Service/SandboxStoreHandler.py b/src/DIRAC/WorkloadManagementSystem/Service/SandboxStoreHandler.py index 048b399c8ed..d83d5e948e8 100755 --- a/src/DIRAC/WorkloadManagementSystem/Service/SandboxStoreHandler.py +++ b/src/DIRAC/WorkloadManagementSystem/Service/SandboxStoreHandler.py @@ -151,6 +151,11 @@ def _getFromClient(self, fileId, token, fileSize, fileHelper=None, data=""): return S_ERROR("Error uploading sandbox", repr(e)) else: gLogger.debug("Sandbox already exists in storage backend", res.pfn) + + assignTo = {key: [(res.pfn, assignTo[key])] for key in assignTo} + result = self.export_assignSandboxesToEntities(assignTo) + if not result["OK"]: + return result return S_OK(res.pfn) sbPath = self.__getSandboxPath(f"{aHash}.{extension}")