Skip to content

Commit

Permalink
Update FNH worker config to only start worker in placeholder mode. (#…
Browse files Browse the repository at this point in the history
…2552)

* Update worker config to only start worker in placeholder mode.

* Bumping the patch version of package (new version is 1.0.9)
  • Loading branch information
kshyju authored Jul 1, 2024
1 parent 74f3ff8 commit 18bfc6a
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<id>Microsoft.Azure.Functions.DotNetIsolatedNativeHost</id>
<title>Microsoft Azure Functions dotnet-isolated native host</title>
<tags>dotnet-isolated azure-functions azure</tags>
<version>1.0.8</version>
<version>1.0.9</version>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<projectUrl>https://github.com/Azure/azure-functions-dotnet-worker</projectUrl>
Expand Down
63 changes: 60 additions & 3 deletions host/tools/build/worker.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,81 @@
"description": {
"language": "dotnet-isolated",
"extensions": [ ".dll" ],
"defaultExecutablePath": "%FUNCTIONS_WORKER_DIRECTORY%/bin/FunctionsNetHost.exe",
"defaultWorkerPath": "bin/FunctionsNetHost.exe",
"workerIndexing": "true"
},
"profiles": [
{
"profileName": "DotnetIsolatedLinux",
"profileName": "DotnetIsolatedLinuxPlaceholder",
"conditions": [
{
"conditionType": "hostProperty",
"conditionName": "platform",
"conditionExpression": "LINUX"
},
{
"conditionType": "environment",
"conditionName": "WEBSITE_CONTAINER_READY",
"conditionExpression": "0"
},
{
"conditionType": "environment",
"conditionName": "WEBSITE_PLACEHOLDER_MODE",
"conditionExpression": "1"
}
],
"description": {
"defaultExecutablePath": "%FUNCTIONS_WORKER_DIRECTORY%/bin/FunctionsNetHost",
"defaultWorkerPath": "bin/FunctionsNetHost"
}
},
{
"profileName": "DotnetIsolatedWindowsPlaceholder",
"conditions": [
{
"conditionType": "hostProperty",
"conditionName": "platform",
"conditionExpression": "WINDOWS"
},
{
"conditionType": "environment",
"conditionName": "WEBSITE_PLACEHOLDER_MODE",
"conditionExpression": "1"
}
],
"description": {
"defaultExecutablePath": "%FUNCTIONS_WORKER_DIRECTORY%/bin/FunctionsNetHost.exe",
"defaultWorkerPath": "bin/FunctionsNetHost.exe"
}
},
{
"profileName": "WindowsFallbackDisabledWorker",
"conditions": [
{
"conditionType": "hostProperty",
"conditionName": "platform",
"conditionExpression": "WINDOWS"
}
],
"description": {
"defaultExecutablePath": "%FUNCTIONS_WORKER_DIRECTORY%/bin/FunctionsNetHost.exe",
"defaultWorkerPath": "bin/FunctionsNetHost.exe",
"isDisabled": true
}
},
{
"profileName": "LinuxFallbackDisabledWorker",
"conditions": [
{
"conditionType": "hostProperty",
"conditionName": "platform",
"conditionExpression": "LINUX"
}
],
"description": {
"defaultExecutablePath": "%FUNCTIONS_WORKER_DIRECTORY%/bin/FunctionsNetHost",
"defaultWorkerPath": "bin/FunctionsNetHost",
"isDisabled": true
}
}
]
}

0 comments on commit 18bfc6a

Please sign in to comment.