Skip to content

Commit d6eb337

Browse files
authored
Add Python to placeholder pool list (#7600)
1 parent 1c3053c commit d6eb337

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/WebJobs.Script/Workers/Rpc/RpcInitializationService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public class RpcInitializationService : IManagedHostedService
4949
{
5050
RpcWorkerConstants.JavaLanguageWorkerName,
5151
RpcWorkerConstants.NodeLanguageWorkerName,
52-
RpcWorkerConstants.PowerShellLanguageWorkerName
52+
RpcWorkerConstants.PowerShellLanguageWorkerName,
53+
RpcWorkerConstants.PythonLanguageWorkerName
5354
};
5455

5556
public RpcInitializationService(IOptionsMonitor<ScriptApplicationHostOptions> applicationHostOptions, IEnvironment environment, IRpcServer rpcServer, IWebHostRpcWorkerChannelManager rpcWorkerChannelManager, ILogger<RpcInitializationService> logger)

test/WebJobs.Script.Tests/Workers/Rpc/RpcInitializationServiceTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ public void ShouldStartStandbyPlaceholderChannels_Returns_ExpectedValue(string p
326326
[InlineData("1", "java", "", true)]
327327
[InlineData("1", "", "1234", false)]
328328
[InlineData("1", "dotnet", "1234", false)]
329-
[InlineData("1", "python", "1234", false)]
329+
[InlineData("1", "python", "1234", true)]
330+
[InlineData("0", "python", "1234", false)]
330331
public void ShouldStartAsPlaceholderPool_Returns_ExpectedValue(string placeholderMode, string workerRuntime, string siteInstanaceId, bool expectedResult)
331332
{
332333
Mock<IRpcServer> testRpcServer = new Mock<IRpcServer>();

0 commit comments

Comments
 (0)