Skip to content

Commit 944a09c

Browse files
author
davidebbo
committed
Create new host config, while preserving host ID
1 parent b5b2a16 commit 944a09c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WebJobs.Script/Host/ScriptHostManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ public ScriptHost Instance
5454
{
5555
IsRunning = false;
5656

57+
// Create a new host config, but keep the host id from existing one
58+
_config.HostConfig = new JobHostConfiguration
59+
{
60+
HostId = _config.HostConfig.HostId
61+
};
5762
ScriptHost newInstance = ScriptHost.Create(_config);
5863

5964
// TODO: consider using StartAsync here to speed up

0 commit comments

Comments
 (0)