This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
39 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,62 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using System.Runtime.Serialization; | ||
|
||
namespace MK.IO | ||
{ | ||
/// <summary> Defines values for JobState. </summary> | ||
public readonly partial struct JobState | ||
/// <summary> | ||
/// The current state of the job. | ||
/// </summary> | ||
/// <value>The current state of the job.</value> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum JobState | ||
{ | ||
// | ||
// Summary: | ||
// The job was canceled. This is a final state for the job. | ||
public static readonly string Canceled = "Canceled"; | ||
[EnumMember(Value = "Canceled")] | ||
Canceled = 1, | ||
|
||
// | ||
// Summary: | ||
// The job is in the process of being canceled. This is a transient state for the | ||
// job. | ||
public static readonly string Canceling = "Canceling"; | ||
[EnumMember(Value = "Canceling")] | ||
Canceling = 2, | ||
|
||
// | ||
// Summary: | ||
// The job has encountered an error. This is a final state for the job. | ||
public static readonly string Error = "Error"; | ||
[EnumMember(Value = "Error")] | ||
Error = 3, | ||
|
||
// | ||
// Summary: | ||
// The job is finished. This is a final state for the job. | ||
public static readonly string Finished = "Finished"; | ||
[EnumMember(Value = "Finished")] | ||
Finished = 4, | ||
|
||
// | ||
// Summary: | ||
// The job is processing. This is a transient state for the job. | ||
public static readonly string Processing = "Processing"; | ||
[EnumMember(Value = "Processing")] | ||
Processing = 5, | ||
|
||
// | ||
// Summary: | ||
// The job is in a queued state, waiting for resources to become available. This | ||
// is a transient state. | ||
public static readonly string Queued = "Queued"; | ||
[EnumMember(Value = "Queued")] | ||
Queued = 6, | ||
|
||
// | ||
// Summary: | ||
// The job is being scheduled to run on an available resource. This is a transient | ||
// state, between queued and processing states. | ||
public static readonly string Scheduled = "Scheduled"; | ||
[EnumMember(Value = "Scheduled")] | ||
Scheduled = 7 | ||
} | ||
} |
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