forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
059d942
commit cbb4606
Showing
20 changed files
with
208 additions
and
216 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
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,55 +1,55 @@ | ||
from cwrap import BaseCEnum | ||
|
||
|
||
class JobStatusType(BaseCEnum): # type: ignore | ||
class JobStatus(BaseCEnum): # type: ignore | ||
TYPE_NAME = "job_status_type_enum" | ||
# This value is used in external query routines - for jobs which are | ||
# (currently) not active. | ||
JOB_QUEUE_NOT_ACTIVE = None | ||
JOB_QUEUE_WAITING = None # A node which is waiting in the internal queue. | ||
NOT_ACTIVE = None | ||
WAITING = None # A node which is waiting in the internal queue. | ||
# Internal status: It has has been submitted - the next status update will | ||
# (should) place it as pending or running. | ||
JOB_QUEUE_SUBMITTED = None | ||
SUBMITTED = None | ||
# A node which is pending - a status returned by the external system. I.e LSF | ||
JOB_QUEUE_PENDING = None | ||
JOB_QUEUE_RUNNING = None # The job is running | ||
PENDING = None | ||
RUNNING = None # The job is running | ||
# The job is done - but we have not yet checked if the target file is | ||
# produced | ||
JOB_QUEUE_DONE = None | ||
DONE = None | ||
# The job has exited - check attempts to determine if we retry or go to | ||
# complete_fail | ||
JOB_QUEUE_EXIT = None | ||
# The job has been killed, following a JOB_QUEUE_DO_KILL - can restart. | ||
JOB_QUEUE_IS_KILLED = None | ||
EXIT = None | ||
# The job has been killed, following a DO_KILL - can restart. | ||
IS_KILLED = None | ||
# The the job should be killed, either due to user request, or automated | ||
# measures - the job can NOT be restarted.. | ||
JOB_QUEUE_DO_KILL = None | ||
JOB_QUEUE_SUCCESS = None | ||
JOB_QUEUE_RUNNING_DONE_CALLBACK = None | ||
JOB_QUEUE_RUNNING_EXIT_CALLBACK = None | ||
JOB_QUEUE_STATUS_FAILURE = None | ||
JOB_QUEUE_FAILED = None | ||
JOB_QUEUE_DO_KILL_NODE_FAILURE = None | ||
JOB_QUEUE_UNKNOWN = None | ||
DO_KILL = None | ||
SUCCESS = None | ||
RUNNING_DONE_CALLBACK = None | ||
RUNNING_EXIT_CALLBACK = None | ||
STATUS_FAILURE = None | ||
FAILED = None | ||
DO_KILL_NODE_FAILURE = None | ||
UNKNOWN = None | ||
|
||
@classmethod | ||
def from_string(cls, name: str) -> "JobStatusType": | ||
def from_string(cls, name: str) -> "JobStatus": | ||
return super().from_string(name) # type: ignore | ||
|
||
|
||
JobStatusType.addEnum("JOB_QUEUE_NOT_ACTIVE", 1) | ||
JobStatusType.addEnum("JOB_QUEUE_WAITING", 2) | ||
JobStatusType.addEnum("JOB_QUEUE_SUBMITTED", 4) | ||
JobStatusType.addEnum("JOB_QUEUE_PENDING", 8) | ||
JobStatusType.addEnum("JOB_QUEUE_RUNNING", 16) | ||
JobStatusType.addEnum("JOB_QUEUE_DONE", 32) | ||
JobStatusType.addEnum("JOB_QUEUE_EXIT", 64) | ||
JobStatusType.addEnum("JOB_QUEUE_IS_KILLED", 128) | ||
JobStatusType.addEnum("JOB_QUEUE_DO_KILL", 256) | ||
JobStatusType.addEnum("JOB_QUEUE_SUCCESS", 512) | ||
JobStatusType.addEnum("JOB_QUEUE_RUNNING_DONE_CALLBACK", 1024) | ||
JobStatusType.addEnum("JOB_QUEUE_RUNNING_EXIT_CALLBACK", 2048) | ||
JobStatusType.addEnum("JOB_QUEUE_STATUS_FAILURE", 4096) | ||
JobStatusType.addEnum("JOB_QUEUE_FAILED", 8192) | ||
JobStatusType.addEnum("JOB_QUEUE_DO_KILL_NODE_FAILURE", 16384) | ||
JobStatusType.addEnum("JOB_QUEUE_UNKNOWN", 32768) | ||
JobStatus.addEnum("NOT_ACTIVE", 1) | ||
JobStatus.addEnum("WAITING", 2) | ||
JobStatus.addEnum("SUBMITTED", 4) | ||
JobStatus.addEnum("PENDING", 8) | ||
JobStatus.addEnum("RUNNING", 16) | ||
JobStatus.addEnum("DONE", 32) | ||
JobStatus.addEnum("EXIT", 64) | ||
JobStatus.addEnum("IS_KILLED", 128) | ||
JobStatus.addEnum("DO_KILL", 256) | ||
JobStatus.addEnum("SUCCESS", 512) | ||
JobStatus.addEnum("RUNNING_DONE_CALLBACK", 1024) | ||
JobStatus.addEnum("RUNNING_EXIT_CALLBACK", 2048) | ||
JobStatus.addEnum("STATUS_FAILURE", 4096) | ||
JobStatus.addEnum("FAILED", 8192) | ||
JobStatus.addEnum("DO_KILL_NODE_FAILURE", 16384) | ||
JobStatus.addEnum("UNKNOWN", 32768) |
Oops, something went wrong.