Skip to content

Commit

Permalink
Reverting "Removing MultiLanguage feature flag (#8727)" (#9079)
Browse files Browse the repository at this point in the history
  • Loading branch information
soninaren authored and azfuncgh committed Feb 13, 2023
1 parent d14dde5 commit 0266f36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebJobs.Script/Environment/EnvironmentExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public static bool IsMultiLanguageRuntimeEnvironment(this IEnvironment environme
{
if (!isMultiLanguageEnabled.HasValue)
{
isMultiLanguageEnabled = environment.IsLogicApp();
isMultiLanguageEnabled = environment.IsLogicApp() && FeatureFlags.IsEnabled(ScriptConstants.FeatureFlagEnableMultiLanguageWorker, environment);
}
return isMultiLanguageEnabled.Value;
}
Expand Down
1 change: 1 addition & 0 deletions src/WebJobs.Script/ScriptConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public static class ScriptConstants
public const string FeatureFlagDisableMergedWebHostScriptHostConfiguration = "DisableMergedConfiguration";
public const string FeatureFlagDisableWorkerIndexing = "DisableWorkerIndexing";
public const string FeatureFlagEnableDebugTracing = "EnableDebugTracing";
public const string FeatureFlagEnableMultiLanguageWorker = "EnableMultiLanguageWorker";
public const string FeatureFlagEnableProxies = "EnableProxies";
public const string FeatureFlagEnableLinuxEPExecutionCount = "EnableLinuxFEC";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public async Task CodelessFunction_CanUse_MultipleLanguageProviders()
var settings = new Dictionary<string, string>()
{
[EnvironmentSettingNames.AppKind] = "workflowApp",
[EnvironmentSettingNames.AzureWebJobsFeatureFlags] = $"{ScriptConstants.FeatureFlagEnableMultiLanguageWorker}",
};
var testEnvironment = new TestEnvironment(settings);

Expand Down Expand Up @@ -85,6 +86,7 @@ public async Task CodelessFunction_CanUse_SingleJavaLanguageProviders()
var settings = new Dictionary<string, string>()
{
[EnvironmentSettingNames.AppKind] = "workflowApp",
[EnvironmentSettingNames.AzureWebJobsFeatureFlags] = $"{ScriptConstants.FeatureFlagEnableMultiLanguageWorker}",
};
var testEnvironment = new TestEnvironment(settings);

Expand Down Expand Up @@ -124,6 +126,7 @@ public async Task CodelessFunction_CanUse_SingleJavascriptLanguageProviders()
var settings = new Dictionary<string, string>()
{
[EnvironmentSettingNames.AppKind] = "workflowApp",
[EnvironmentSettingNames.AzureWebJobsFeatureFlags] = $"{ScriptConstants.FeatureFlagEnableMultiLanguageWorker}",
};
var testEnvironment = new TestEnvironment(settings);

Expand Down Expand Up @@ -163,6 +166,7 @@ public async Task CodelessFunction_CanUse_NoLanguageProviders()
var settings = new Dictionary<string, string>()
{
[EnvironmentSettingNames.AppKind] = "workflowApp",
[EnvironmentSettingNames.AzureWebJobsFeatureFlags] = $"{ScriptConstants.FeatureFlagEnableMultiLanguageWorker}",
};
var testEnvironment = new TestEnvironment(settings);

Expand Down

0 comments on commit 0266f36

Please sign in to comment.