@@ -748,7 +748,8 @@ void DeviceSpecHelpers::prepareArguments(bool defaultQuiet, bool defaultStopped,
748748 std::vector<DataProcessorInfo> const & processorInfos,
749749 std::vector<DeviceSpec> const & deviceSpecs,
750750 std::vector<DeviceExecution>& deviceExecutions,
751- std::vector<DeviceControl>& deviceControls)
751+ std::vector<DeviceControl>& deviceControls,
752+ std::string const & uniqueWorkflowId)
752753{
753754 assert (deviceSpecs.size () == deviceExecutions.size ());
754755 assert (deviceControls.size () == deviceExecutions.size ());
@@ -800,6 +801,7 @@ void DeviceSpecHelpers::prepareArguments(bool defaultQuiet, bool defaultStopped,
800801 std::vector<std::string> tmpArgs = {argv[0 ],
801802 " --id" , spec.id .c_str (),
802803 " --control" , " static" ,
804+ " --session" , " dpl_" + uniqueWorkflowId,
803805 " --log-color" , " false" ,
804806 " --color" , " false" };
805807 if (defaultStopped) {
@@ -847,6 +849,7 @@ void DeviceSpecHelpers::prepareArguments(bool defaultQuiet, bool defaultStopped,
847849 realOdesc.add_options ()(" child-driver" , bpo::value<std::string>());
848850 realOdesc.add_options ()(" rate" , bpo::value<std::string>());
849851 realOdesc.add_options ()(" shm-segment-size" , bpo::value<std::string>());
852+ realOdesc.add_options ()(" session" , bpo::value<std::string>());
850853 filterArgsFct (expansions.we_wordc , expansions.we_wordv , realOdesc);
851854 wordfree (&expansions);
852855 return ;
@@ -938,6 +941,7 @@ boost::program_options::options_description DeviceSpecHelpers::getForwardedDevic
938941 (" control-port" , bpo::value<std::string>(), " Utility port to be used by O2 Control" ) //
939942 (" rate" , bpo::value<std::string>(), " rate for a data source device (Hz)" ) //
940943 (" shm-segment-size" , bpo::value<std::string>(), " size of the shared memory segment in bytes" ) //
944+ (" session" , bpo::value<std::string>(), " unique label for the shm session" ) //
941945 (" monitoring-backend" , bpo::value<std::string>(), " monitoring connection string" ) //
942946 (" infologger-mode" , bpo::value<std::string>(), " INFOLOGGER_MODE override" ) //
943947 (" infologger-severity" , bpo::value<std::string>(), " minimun FairLogger severity which goes to info logger" ) //
0 commit comments