Skip to content

Commit f7e809a

Browse files
committed
Set enum to all caps
1 parent 663bae2 commit f7e809a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

wes_service/__init__.pyc

1.62 KB
Binary file not shown.

wes_service/cwl_runner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def run(self, request, opts):
5151
return self.getstatus()
5252

5353
def getstate(self):
54-
state = "Running"
54+
state = "RUNNING"
5555
exit_code = -1
5656

5757
exc = os.path.join(self.workdir, "exit_code")
@@ -73,9 +73,9 @@ def getstate(self):
7373
exit_code = 255
7474

7575
if exit_code == 0:
76-
state = "Complete"
76+
state = "COMPLETE"
7777
elif exit_code != -1:
78-
state = "Error"
78+
state = "ERROR"
7979

8080
return (state, exit_code)
8181

@@ -97,7 +97,7 @@ def getlog(self):
9797
stderr = f.read()
9898

9999
outputobj = {}
100-
if state == "Complete":
100+
if state == "COMPLETE":
101101
with open(os.path.join(self.workdir, "cwl.output.json"), "r") as outputtemp:
102102
outputobj = json.load(outputtemp)
103103

0 commit comments

Comments
 (0)