-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure that the service returns states recognized by snpseq_packs (#13)
* ensure that the service returns states recognized by snpseq_packs * address review comments
- Loading branch information
Showing
5 changed files
with
71 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
from arteria.web.state import State | ||
|
||
# mapping between the internal states of the service (keys) and the states that should be | ||
# returned in the response object (parsed by e.g. poll_status.py in snpseq_packs) | ||
REDIS_STATES = { | ||
"queued": State.PENDING, | ||
"deferred": State.PENDING, | ||
"scheduled": State.PENDING, | ||
"started": State.STARTED, | ||
"finished": State.DONE, | ||
"failed": State.ERROR, | ||
"stopped": State.CANCELLED, | ||
"canceled": State.CANCELLED | ||
} |
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 |
---|---|---|
|
@@ -25,6 +25,7 @@ classifiers = [ | |
] | ||
dependencies = [ | ||
"aiohttp", | ||
"arteria", | ||
"pyyaml", | ||
"redis", | ||
"rq" | ||
|
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