forked from Azure/azure-functions-host
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
IsDisabled
property to worker description and skip if the value…
… is True (Azure#10231) * Adding support to skip a worker description when none of the profile conditions are met. * Adding release notes. * Changes to switch to "IsDisabled" property on worker description. * missed a file
- Loading branch information
Showing
10 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
7 changes: 7 additions & 0 deletions
7
test/WebJobs.Script.Tests/TestWorkers/worker1/worker.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"description": { | ||
"language": "foo", | ||
"defaultExecutablePath": "%FUNCTIONS_WORKER_DIRECTORY%/1.bat", | ||
"defaultWorkerPath": "1.bat" | ||
} | ||
} |
Empty file.
36 changes: 36 additions & 0 deletions
36
test/WebJobs.Script.Tests/TestWorkers/worker2/worker.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"description": { | ||
"language": "bar" | ||
}, | ||
"profiles": [ | ||
{ | ||
"profileName": "SpecificConditionProfile", | ||
"conditions": [ | ||
{ | ||
"conditionType": "environment", | ||
"conditionName": "NON_EXISTING_ENV_VAR", | ||
"conditionExpression": "(?i)true$" | ||
} | ||
], | ||
"description": { | ||
"defaultExecutablePath": "%FUNCTIONS_WORKER_DIRECTORY%/2.bat", | ||
"defaultWorkerPath": "2.bat" | ||
} | ||
}, | ||
{ | ||
"profileName": "FallbackProfileToDisableWorker", | ||
"conditions": [ | ||
{ | ||
"conditionType": "environment", | ||
"conditionName": "ENV_VAR_BAR", | ||
"conditionExpression": "(?i)true$" | ||
} | ||
], | ||
"description": { | ||
"defaultExecutablePath": "%FUNCTIONS_WORKER_DIRECTORY%/2.bat", | ||
"defaultWorkerPath": "2.bat", | ||
"isDisabled": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters