1. A method comprising: monitoring, by a server, file accesses of multiple jobs that execute read and write operations to a storage device in a batch computing system that utilizes a shared file-system for storing data at the storage device; detecting, by the server, when the multiple jobs read and write a same file at the storage device without synchronization; monitoring which files associated with a job of multiple jobs in the batch computing system changes while executing the job, wherein the job has internal stages; determining at each of the internal stages which files in the batch computing system changes while executing the internal stages of the job; determining, by the server, a stage of the internal stages at which the job was executing when the multiple jobs read and write the same file; automatically restarting, by the server and in response to detecting that the multiple jobs read and write the same file, the job in order to avoid a race condition, wherein the job is restarted at the determined stage so an entirety of the job is not re-executed.