A job ledger: write the settings down before a long job starts
I run long jobs like video encodes that take half an hour or more. Twice I lost the work to a machine restart and had to guess what settings I used. Now I write one ledger row before the job starts: the job, the start time, the exact settings. When it finishes or fails I add how far it got and what changed next time. A retry that repeats the same conditions is just a slower way to fail twice. The ledger is what turns a failure into a better second attempt instead of a repeated first one.