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
Currently, we do not catch KeyboardInterrupt anywhere, nor install any SIGINT handler ourselves. Thus, control-C exits ch-image immediately (with a traceback) during various phases can leave a broken storage directory. For example:
Interrupting RUN prevents roll-back, leaving a broken image. Recovery can be done by deleting the image.
Interrupting a download leaves the blob file on disk, and it will be credulously re-used the next time needed. Recovery here is rather tricky, as the right file must be identified and manually deleted.
The text was updated successfully, but these errors were encountered:
reidpr
changed the title
Control-C can leave the storage directory in invalid state
SIGINT and SIGTERM can leave the storage directory in invalid state
Sep 12, 2023
Currently, we do not catch
KeyboardInterrupt
anywhere, nor install anySIGINT
handler ourselves. Thus, control-C exitsch-image
immediately (with a traceback) during various phases can leave a broken storage directory. For example:RUN
prevents roll-back, leaving a broken image. Recovery can be done by deleting the image.The text was updated successfully, but these errors were encountered: