private static bool IsJobTerminalState(Job job)
 {
     return(job.Status.Equals(JobState.Completed.ToString(), StringComparison.OrdinalIgnoreCase) ||
            job.Status.Equals(JobState.Failed.ToString(), StringComparison.OrdinalIgnoreCase) ||
            job.Status.Equals(JobState.Stopped.ToString(), StringComparison.OrdinalIgnoreCase) ||
            job.Status.Equals(JobState.Suspended.ToString(), StringComparison.OrdinalIgnoreCase));
 }
 private static bool IsJobTerminalState(Job job)
 {
     return job.Status.Equals(JobState.Completed.ToString(), StringComparison.OrdinalIgnoreCase) ||
            job.Status.Equals(JobState.Failed.ToString(), StringComparison.OrdinalIgnoreCase) ||
            job.Status.Equals(JobState.Stopped.ToString(), StringComparison.OrdinalIgnoreCase) ||
            job.Status.Equals(JobState.Suspended.ToString(), StringComparison.OrdinalIgnoreCase);
 }