Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ using namespace NCommon;
TSolomonConfiguration::TSolomonConfiguration()
{
REGISTER_SETTING(*this, _EnableReading);
REGISTER_SETTING(*this, _EnableRuntimeListing);
REGISTER_SETTING(*this, MetricsQueuePageSize);
REGISTER_SETTING(*this, MetricsQueuePrefetchSize);
REGISTER_SETTING(*this, MetricsQueueBatchCountLimit);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ struct TSolomonSettings {
#endif
public:
NCommon::TConfSetting<bool, Static> _EnableReading;
NCommon::TConfSetting<bool, Static> _EnableRuntimeListing;
NCommon::TConfSetting<ui64, Static> MetricsQueuePageSize;
NCommon::TConfSetting<ui64, Static> MetricsQueuePrefetchSize;
NCommon::TConfSetting<ui64, Static> MetricsQueueBatchCountLimit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ class TSolomonDataSourceTypeAnnotationTransformer : public TVisitorTransformerBa
}
bool hasSelectors = !selectors.Content().empty();

if (hasSelectors && !State_->Configuration->_EnableRuntimeListing.Get().GetOrElse(false)) {
ctx.AddError(TIssue(ctx.GetPosition(selectors.Pos()), "runtime listing is disabled, use `program` parameter"));
return TStatus::Error;
}

auto& program = *input->Child(TSoSourceSettings::idx_Program);
if (!EnsureAtom(program, ctx)) {
return TStatus::Error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ class TSolomonDqIntegration: public TDqIntegrationBase {

NDq::TDqSolomonReadParams readParams{ .Source = source };

YQL_ENSURE(NActors::TlsActivationContext);
auto metricsQueueActor = NActors::TActivationContext::ActorSystem()->Register(
NDq::CreateSolomonMetricsQueueActor(
std::min<ui64>(maxTasksPerStage, totalMetricsCount),
Expand Down
Loading