I am trying to schedule a job in ColdFusion which basically moves the folders at one location to another. I have scheduled it to run after every 2 mins but it takes more than 2 mins which is depending on the size of the folder.
I noticed one thing that it is executing exactly after two mins skipping the operation it is currently performing. I want the next run of the job only when the previous run is completed.
Also, I don't know how much time each operation would take as it depends on the size of the folder so probably I cannot make timeout setting or sleep the job for some time. I wanted the dependency in the previous and next runs of the jobs.
Please guide me on this.