Skip to content

Commit a1823e1

Browse files
authored
An option to disable YT calls inside DQ (#7430)
1 parent 07600db commit a1823e1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ydb/library/yql/providers/dq/config/config.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ message TDqConfig {
124124
optional bool EnforceJobUtc = 33;
125125
optional TSpillingSettings SpillingSettings = 38;
126126
optional TDiskRequest DiskRequest = 39;
127+
optional bool EnforceJobYtIsolation = 40;
127128
}
128129

129130
repeated TYtBackend YtBackends = 5;

ydb/library/yql/tools/dq/worker_job/dq_worker.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ namespace NYql::NDq::NWorker {
237237
if (backendConfig.GetEnforceJobUtc()) {
238238
pfOptions.Env["TZ"] = "UTC0";
239239
}
240+
if (backendConfig.GetEnforceJobYtIsolation()) {
241+
pfOptions.Env["YT_ALLOW_HTTP_REQUESTS_TO_YT_FROM_JOB"] = "0";
242+
}
240243
pfOptions.EnablePorto = backendConfig.GetEnablePorto() == "isolate";
241244
pfOptions.PortoLayer = backendConfig.GetPortoLayer().size() == 0 ? "" : layerDir;
242245
pfOptions.MaxProcesses = capacity*1.5;

0 commit comments

Comments
 (0)