From 0348c265554102d430b96c6c54af30e08793b7f0 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 9 Oct 2025 12:18:51 +0200 Subject: [PATCH] DPL: support submitting directly to slurm Without this, different jobs on the same machine will cross-talk due to possible lack of isolation in linux abstract sockets. --- Framework/Core/src/ChannelSpecHelpers.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Framework/Core/src/ChannelSpecHelpers.cxx b/Framework/Core/src/ChannelSpecHelpers.cxx index c66a1964c12a0..0578c51403b26 100644 --- a/Framework/Core/src/ChannelSpecHelpers.cxx +++ b/Framework/Core/src/ChannelSpecHelpers.cxx @@ -339,6 +339,10 @@ std::string ChannelSpecHelpers::defaultIPCFolder() if (channelPrefix) { return fmt::format("@dpl_{}_", channelPrefix); } + channelPrefix = getenv("SLURM_JOB_ID"); + if (channelPrefix) { + return fmt::format("@dpl_{}_", channelPrefix); + } return "@"; #else /// Find out a place where we can write the sockets