Skip to content

Commit 443ca91

Browse files
authored
DPL: do not add condition-backend option if already there (#7275)
1 parent d543372 commit 443ca91

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Framework/Core/src/WorkflowHelpers.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ void WorkflowHelpers::injectServiceDevices(WorkflowSpec& workflow, ConfigContext
320320
timer.outputs.emplace_back(OutputSpec{concrete.origin, concrete.description, concrete.subSpec, Lifetime::Enumeration});
321321
} break;
322322
case Lifetime::Condition: {
323+
for (auto& option : processor.options) {
324+
if (option.name == "condition-backend") {
325+
hasConditionOption = true;
326+
break;
327+
}
328+
}
323329
if (hasConditionOption == false) {
324330
processor.options.emplace_back(ConfigParamSpec{"condition-backend", VariantType::String, "http://localhost:8080", {"URL for CCDB"}});
325331
processor.options.emplace_back(ConfigParamSpec{"condition-timestamp", VariantType::Int64, 0ll, {"Force timestamp for CCDB lookup"}});

0 commit comments

Comments
 (0)