Skip to content

Commit

Permalink
Remove invalid caching for cached workchain
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed May 15, 2023
1 parent d59ce04 commit edfef32
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions aiida_sssp_workflow/workflows/verifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,14 @@ def on_terminated(self):
self.report(f"{type(self)}: remote folders will not be cleaned")
return

if "verify_caching" in self.ctx:
# For calcjobs in _caching, to prevent it from being used by second run after
# remote work_dir cleaned. I invalid it from caching if it is being cleaned.
invalid_calcs = operate_calcjobs(
self.ctx.verify_caching, operator=invalid_cache, all_same_nodes=True
)

if invalid_calcs:
self.report(
f"Invalid cache of `_caching` (even nonmenon) workflow's calcjob node: {' '.join(map(str, invalid_calcs))}"
)
# if "verify_caching" in self.ctx:
# # For calcjobs in _caching, to prevent it from being used by second run after
# # remote work_dir cleaned. I invalid it from caching if it is being cleaned.
# invalid_calcs = operate_calcjobs(
# self.ctx.verify_caching, operator=invalid_cache, all_same_nodes=True
# )

# if invalid_calcs:
# self.report(
# f"Invalid cache of `_caching` (even nonmenon) workflow's calcjob node: {' '.join(map(str, invalid_calcs))}"
# )

0 comments on commit edfef32

Please sign in to comment.