Skip to content

Commit

Permalink
Rename FF CheckIfTaskNodeRunnerIsDeprecated (#5003)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisRumyantsev authored Sep 26, 2024
1 parent 57ad896 commit 23233ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Agent.Sdk/Knob/AgentKnobs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -661,11 +661,11 @@ public class AgentKnobs
new RuntimeKnobSource("AZP_AGENT_CHECK_FOR_TASK_DEPRECATION"),
new BuiltInDefaultKnobSource("false"));

public static readonly Knob CheckIfTaskNodeRunnerIsDeprecated = new Knob(
nameof(CheckIfTaskNodeRunnerIsDeprecated),
public static readonly Knob CheckIfTaskNodeRunnerIsDeprecated246 = new Knob(
nameof(CheckIfTaskNodeRunnerIsDeprecated246),
"If true, the agent will check in the 'Initialize job' step each task used in the job if this task has node handlers, and all of them are deprecated.",
new RuntimeKnobSource("AZP_AGENT_CHECK_IF_TASK_NODE_RUNNER_IS_DEPRECATED"),
new PipelineFeatureSource("CheckIfTaskNodeRunnerIsDeprecated"),
new RuntimeKnobSource("AZP_AGENT_CHECK_IF_TASK_NODE_RUNNER_IS_DEPRECATED_246"),
new PipelineFeatureSource("CheckIfTaskNodeRunnerIsDeprecated246"),
new BuiltInDefaultKnobSource("false"));

public static readonly Knob UseNode20ToStartContainer = new Knob(
Expand Down
2 changes: 1 addition & 1 deletion src/Agent.Worker/TaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ into taskGrouping
CheckForTaskDeprecation(executionContext, task);
}

if (AgentKnobs.CheckIfTaskNodeRunnerIsDeprecated.GetValue(executionContext).AsBoolean())
if (AgentKnobs.CheckIfTaskNodeRunnerIsDeprecated246.GetValue(executionContext).AsBoolean())
{
if (!exceptionList.Contains(task.Id))
{
Expand Down

0 comments on commit 23233ae

Please sign in to comment.