Skip to content

Commit 8aa71b4

Browse files
committed
Rename NOTQUEUED as NOTFOUND
1 parent 68be363 commit 8aa71b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

batchspawner/batchspawner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def format_template(template, *args, **kwargs):
5858
return template.format(*args, **kwargs)
5959

6060
class JobStatus(Enum):
61-
NOTQUEUED = 0
61+
NOTFOUND = 0
6262
RUNNING = 1
6363
PENDING = 2
6464
UNKNOWN = 3
@@ -272,7 +272,7 @@ async def submit_batch_script(self):
272272
async def query_job_status(self):
273273
if self.job_id is None or len(self.job_id) == 0:
274274
self.job_status = ''
275-
return JobStatus.NOTQUEUED
275+
return JobStatus.NOTFOUND
276276
subvars = self.get_req_subvars()
277277
subvars['job_id'] = self.job_id
278278
cmd = ' '.join((format_template(self.exec_prefix, **subvars),
@@ -293,7 +293,7 @@ async def query_job_status(self):
293293
elif self.state_isunknown():
294294
return JobStatus.UNKNOWN
295295
else:
296-
return JobStatus.NOTQUEUED
296+
return JobStatus.NOTFOUND
297297

298298
batch_cancel_cmd = Unicode('',
299299
help="Command to stop/cancel a previously submitted job. Formatted like batch_query_cmd."

0 commit comments

Comments
 (0)