Skip to content

Commit 9fa50e5

Browse files
committed
Bring status next to poll_facade which is the only user
changed behaviour: none
1 parent 91f814b commit 9fa50e5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

parsl/executors/status_handling.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,6 @@ def outstanding(self) -> int:
117117
raise NotImplementedError("Classes inheriting from BlockProviderExecutor must implement "
118118
"outstanding()")
119119

120-
def status(self) -> Dict[str, JobStatus]:
121-
"""Return the status of all jobs/blocks currently known to this executor.
122-
123-
:return: a dictionary mapping block ids (in string) to job status
124-
"""
125-
if self._provider:
126-
block_ids, job_ids = self._get_block_and_job_ids()
127-
status = self._make_status_dict(block_ids, self._provider.status(job_ids))
128-
else:
129-
status = {}
130-
status.update(self._simulated_status)
131-
132-
return status
133-
134120
def set_bad_state_and_fail_all(self, exception: Exception):
135121
"""Allows external error handlers to mark this executor as irrecoverably bad and cause
136122
all tasks submitted to it now and in the future to fail. The executor is responsible
@@ -317,6 +303,20 @@ def poll_facade(self) -> None:
317303
if delta_status:
318304
self.send_monitoring_info(delta_status)
319305

306+
def status(self) -> Dict[str, JobStatus]:
307+
"""Return the status of all jobs/blocks currently known to this executor.
308+
309+
:return: a dictionary mapping block ids (in string) to job status
310+
"""
311+
if self._provider:
312+
block_ids, job_ids = self._get_block_and_job_ids()
313+
status = self._make_status_dict(block_ids, self._provider.status(job_ids))
314+
else:
315+
status = {}
316+
status.update(self._simulated_status)
317+
318+
return status
319+
320320
@property
321321
def status_facade(self) -> Dict[str, JobStatus]:
322322
"""Return the status of all jobs/blocks of the executor of this poller.

0 commit comments

Comments
 (0)