r/deeplearning • u/Standard_Hamster2878 • 21d ago
First time using kaggle, kernel restarted itself after inactivity and deleted data scored in "/kaggle/working" which had feature extraction of 3.5 hours continous work...How do I prevent this from happening again ?
I thought it would be saved automatically but save option was only for the notebook code, How do I save such data which can be lost in kernel restarts or something..I just took a break for half an hour after doing it but yea realized this stuff in a hard way.
1
Upvotes
2
u/Massive_Distance_616 21d ago
/kaggle/workingonly survives if you save a version of the notebook (Save Version, then run it) and the files are still in the output when that run finishes.If the session restarts or times out before that, anything in there is lost, which is why saving the notebook only kept your code.
For long jobs, write results to disk in chunks as you go, and check for existing files at the start so the job can resume instead of starting over.
Chunks only help if they survive, though, so save a version or upload them as a Kaggle dataset before you step away, not just at the end.
A restart then costs you the last chunk, not 3.5 hours.
Kaggle’s docs list the session and inactivity limits, so check those for how long an idle session lasts.
1
u/EffectiveCounty2313 21d ago
saved a version right after each chunk, then uploaded to kaggle datasets. no more lost work.