Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accelerate removing of jobs by removing consistency check #1326

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions pyiron_base/project/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,16 +1705,13 @@ def _remove_jobs_helper(self, recursive=False, progress=True):
if progress and len(job_id_lst) > 0:
job_id_lst = tqdm(job_id_lst)
for job_id in job_id_lst:
if job_id not in self.get_job_ids(recursive=recursive):
continue
else:
try:
self.remove_job(job_specifier=job_id)
state.logger.debug("Remove job with ID {0} ".format(job_id))
except (IndexError, Exception):
state.logger.debug(
"Could not remove job with ID {0} ".format(job_id)
)
try:
self.remove_job(job_specifier=job_id)
state.logger.debug("Remove job with ID {0} ".format(job_id))
except (IndexError, Exception):
state.logger.debug(
"Could not remove job with ID {0} ".format(job_id)
)
else:
raise EnvironmentError("copy_to: is not available in Viewermode !")

Expand Down
Loading