Files
UnrealEngineUWP/Engine/Source/Programs/Horde/Drivers/JobDriver/DriverSettings.cs
ben marsh df6c2531c1 Horde: Remove deprecated setting for processes to terminate.
#rnx

[CL 33858748 by ben marsh in ue5-main branch]
2024-05-23 08:18:46 -04:00

50 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using JobDriver.Execution;
using JobDriver.Utility;
namespace JobDriver
{
/// <summary>
/// Settings for the driver
/// </summary>
class DriverSettings
{
/// <summary>
/// The executor to use for jobs
/// </summary>
public string Executor { get; set; } = WorkspaceExecutor.Name;
/// <summary>
/// Settings for the local executor
/// </summary>
public LocalExecutorSettings LocalExecutor { get; set; } = new LocalExecutorSettings();
/// <summary>
/// Settings for the perforce executor
/// </summary>
public PerforceExecutorSettings PerforceExecutor { get; set; } = new PerforceExecutorSettings();
/// <summary>
/// List of process names to terminate after a lease completes, but not after a job step
/// </summary>
public List<ProcessToTerminate> ProcessesToTerminate { get; } = new List<ProcessToTerminate>();
}
/// <summary>
/// Specifies a process to terminate
/// </summary>
public class ProcessToTerminate
{
/// <summary>
/// Name of the process
/// </summary>
public string Name { get; set; } = String.Empty;
/// <summary>
/// When to terminate this process
/// </summary>
public List<TerminateCondition>? When { get; init; }
}
}