When replay.ts call worker.terminate(), it's a basically force kill. Thus the finally branch in handy.ts/_downloadFile() is not executed in worker thread.
When process is SIGINT terminated, cacheDir ended up being littered by tons of .unconfirmed temp files.
https://github.com/tardis-dev/tardis-node/blob/69006db94d0aadcbb51196c8f12f1c7784b89b5d/src/handy.ts#L283-L337
When
replay.ts
callworker.terminate()
, it's a basically force kill. Thus thefinally
branch inhandy.ts/_downloadFile()
is not executed in worker thread.When process is SIGINT terminated,
cacheDir
ended up being littered by tons of.unconfirmed
temp files.