@@ -52,6 +52,8 @@ void customize(std::vector<ConfigParamSpec>& workflowOptions)
5252 " will be used" } });
5353 workflowOptions.push_back (
5454 ConfigParamSpec{ " remote" , VariantType::Bool, false , { " Creates only the remote part of the QC topology." } });
55+ workflowOptions.push_back (
56+ ConfigParamSpec{ " no-data-sampling" , VariantType::Bool, false , { " Do not add Data Sampling infrastructure." } });
5557}
5658
5759void customize (std::vector<CompletionPolicy>& policies)
@@ -85,15 +87,25 @@ WorkflowSpec defineDataProcessing(const ConfigContext& config)
8587
8688 if (!config.options ().get <bool >(" local" ) && !config.options ().get <bool >(" remote" )) {
8789 ILOG (Info, Support) << " Creating a standalone QC topology." << ENDM ;
88- DataSampling::GenerateInfrastructure (specs, qcConfigurationSource);
90+
91+ if (!config.options ().get <bool >(" no-data-sampling" )) {
92+ ILOG (Info, Support) << " Generating Data Sampling" << ENDM ;
93+ DataSampling::GenerateInfrastructure (specs, qcConfigurationSource);
94+ } else {
95+ ILOG (Info, Support) << " Omitting Data Sampling" << ENDM ;
96+ }
8997 quality_control::generateStandaloneInfrastructure (specs, qcConfigurationSource);
9098 }
9199
92100 if (config.options ().get <bool >(" local" )) {
93101 ILOG (Info, Support) << " Creating a local QC topology." << ENDM ;
94102
95- // Generation of Data Sampling infrastructure
96- DataSampling::GenerateInfrastructure (specs, qcConfigurationSource);
103+ if (!config.options ().get <bool >(" no-data-sampling" )) {
104+ ILOG (Info, Support) << " Generating Data Sampling" << ENDM ;
105+ DataSampling::GenerateInfrastructure (specs, qcConfigurationSource);
106+ } else {
107+ ILOG (Info, Support) << " Omitting Data Sampling" << ENDM ;
108+ }
97109
98110 // Generation of the local QC topology (local QC tasks and their output proxies)
99111 auto host = config.options ().get <std::string>(" host" ).empty ()
0 commit comments