Address PR comments
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ namespace TestImpact
|
||||
public:
|
||||
//! Constructs the job runner with the specified parameters to constrain job runs.
|
||||
//! @param maxConcurrentProcesses he maximum number of concurrent jobs in-flight.
|
||||
JobRunner(size_t maxConcurrentProcesses);
|
||||
explicit JobRunner(size_t maxConcurrentProcesses);
|
||||
|
||||
//! Executes the specified jobs and returns the products of their labor.
|
||||
//! @param jobs The arguments (and other pertinent information) required for each job to be run.
|
||||
|
||||
+6
-5
@@ -95,8 +95,9 @@ namespace TestImpact
|
||||
{
|
||||
if (PopAndLaunch(process) == ProcessCallbackResult::Abort)
|
||||
{
|
||||
// Client chose to abort the scheduler
|
||||
TerminateAllProcesses(ExitCondition::Terminated);
|
||||
return ProcessSchedulerResult::Graceful;
|
||||
return ProcessSchedulerResult::UserAborted;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,7 +145,7 @@ namespace TestImpact
|
||||
{
|
||||
// Client chose to abort the scheduler
|
||||
TerminateAllProcesses(ExitCondition::Terminated);
|
||||
return ProcessSchedulerResult::Graceful;
|
||||
return ProcessSchedulerResult::UserAborted;
|
||||
}
|
||||
else if (!m_processQueue.empty())
|
||||
{
|
||||
@@ -153,7 +154,7 @@ namespace TestImpact
|
||||
{
|
||||
// Client chose to abort the scheduler
|
||||
TerminateAllProcesses(ExitCondition::Terminated);
|
||||
return ProcessSchedulerResult::Graceful;
|
||||
return ProcessSchedulerResult::UserAborted;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -184,7 +185,7 @@ namespace TestImpact
|
||||
{
|
||||
// Client chose to abort the scheduler
|
||||
TerminateAllProcesses(ExitCondition::Terminated);
|
||||
return ProcessSchedulerResult::Graceful;
|
||||
return ProcessSchedulerResult::UserAborted;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,7 +202,7 @@ namespace TestImpact
|
||||
{
|
||||
// Client chose to abort the scheduler
|
||||
TerminateAllProcesses(ExitCondition::Terminated);
|
||||
return ProcessSchedulerResult::Graceful;
|
||||
return ProcessSchedulerResult::UserAborted;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
+3
-2
@@ -51,9 +51,10 @@ namespace TestImpact
|
||||
};
|
||||
|
||||
//! Result of the process scheduling sequence.
|
||||
enum class ProcessSchedulerResult : bool
|
||||
enum class ProcessSchedulerResult : AZ::u8
|
||||
{
|
||||
Graceful, //!< The scheduler completed its run without incident or was terminated gracefully in response to a client callback result.
|
||||
UserAborted, //!< The scheduler aborted prematurely due to the user returning an abort value from thier callback handler.
|
||||
Timeout //!< The scheduler aborted its run prematurely due to its runtime exceeding the scheduler timeout value.
|
||||
};
|
||||
|
||||
@@ -88,7 +89,7 @@ namespace TestImpact
|
||||
public:
|
||||
//! Constructs the scheduler with the specified batch of processes.
|
||||
//! @param maxConcurrentProcesses The maximum number of concurrent processes in-flight.
|
||||
ProcessScheduler(size_t maxConcurrentProcesses);
|
||||
explicit ProcessScheduler(size_t maxConcurrentProcesses);
|
||||
~ProcessScheduler();
|
||||
|
||||
//! Executes the specified processes and calls the client callbacks (if any) as each process progresses in its life cycle.
|
||||
|
||||
Reference in New Issue
Block a user