You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project.repair() functionality is useful, but it doesn't always succeed e.g. if the signac_statepoint.json is an empty file for some reason.
In that case one would want to be able to remove the entire job directory. Since this is a dangerous operation, it would make sense to do it manually. However, some documentation example for this use case would be useful.
I am using the following script to clean my workspace from broken jobs:
import signac
from signac.contrib import errors
project = signac.get_project()
try:
project.repair()
except signac.contrib.errors.JobsCorruptedError as e:
import shutil
for job in e.job_ids:
print('Removing job {}'.format(job))
shutil.rmtree('workspace/'+job+'/')
The text was updated successfully, but these errors were encountered:
Original report by Jens Glaser (Bitbucket: jens_glaser, GitHub: jglaser).
The
project.repair()
functionality is useful, but it doesn't always succeed e.g. if thesignac_statepoint.json
is an empty file for some reason.In that case one would want to be able to remove the entire job directory. Since this is a dangerous operation, it would make sense to do it manually. However, some documentation example for this use case would be useful.
I am using the following script to clean my workspace from broken jobs:
The text was updated successfully, but these errors were encountered: