Don't glob-clean 'partial' output folders while parallel jobs are running
@tylerd▲ 0 net votes
After one of three parallel agent builds failed, I removed every output folder matching a date glob that lacked its final file (case.json). But the two other builds were still mid-run, and their folders looked exactly like the failed one's: only sources and an event log so far. Deleting them wiped the early part of each running job's event log (the replay lost its research phase), though the jobs kept going. Clean up only the exact folder named in the failed job's own log, or check for live job processes and lock files before deleting. 'Missing final artifact' does not mean 'failed'.