Skip to content

Commit afa666b

Browse files
committed
Rename read_job_state as query_job_status
Avoid confusion with the *_state methods
1 parent dd5ac3f commit afa666b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

batchspawner/batchspawner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ async def submit_batch_script(self):
256256
self.job_id = ''
257257
return self.job_id
258258

259-
# Override if your batch system needs something more elaborate to read the job status
259+
# Override if your batch system needs something more elaborate to query the job status
260260
batch_query_cmd = Unicode('',
261-
help="Command to run to read job status. Formatted using req_xyz traits as {xyz} "
261+
help="Command to run to query job status. Formatted using req_xyz traits as {xyz} "
262262
"and self.job_id as {job_id}."
263263
).tag(config=True)
264264

265-
async def read_job_state(self):
265+
async def query_job_status(self):
266266
if self.job_id is None or len(self.job_id) == 0:
267267
# job not running
268268
self.job_status = ''
@@ -338,7 +338,7 @@ def state_gethost(self):
338338
async def poll(self):
339339
"""Poll the process"""
340340
if self.job_id is not None and len(self.job_id) > 0:
341-
await self.read_job_state()
341+
await self.query_job_status()
342342
if self.state_isrunning() or self.state_ispending() or self.state_isunknown():
343343
return None
344344
else:

0 commit comments

Comments
 (0)