forked from y-scope/clp
-
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.
Move scheduler constants into their own module so that packages with …
…native dependencies are not transitively included in the package start-up script. (y-scope#80)
- Loading branch information
1 parent
6d35126
commit 54497a0
Showing
10 changed files
with
46 additions
and
41 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
2 changes: 1 addition & 1 deletion
2
components/job-orchestration/job_orchestration/executor/celeryconfig.py
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
27 changes: 27 additions & 0 deletions
27
components/job-orchestration/job_orchestration/scheduler/constants.py
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
TASK_QUEUE_LOWEST_PRIORITY = 1 | ||
TASK_QUEUE_HIGHEST_PRIORITY = 3 | ||
|
||
|
||
class QueueName: | ||
COMPRESSION = "compression" | ||
SEARCH = "search" | ||
|
||
|
||
class JobStatus: | ||
SCHEDULING = 'SCHEDULING' | ||
SCHEDULED = 'SCHEDULED' | ||
SUCCEEDED = 'SUCCEEDED' | ||
FAILED = 'FAILED' | ||
|
||
|
||
class TaskUpdateType: | ||
COMPRESSION = 'COMPRESSION' | ||
SEARCH = 'SEARCH' | ||
|
||
|
||
class TaskStatus: | ||
SUBMITTED = 'SUBMITTED' | ||
SCHEDULED = 'SCHEDULED' | ||
IN_PROGRESS = 'IN_PROGRESS' | ||
SUCCEEDED = 'SUCCEEDED' | ||
FAILED = 'FAILED' |
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