I have a python script that I want to execute every 10 minutes. However it takes 30 minutes to complete that script. (It's a script to query approx 1400+ servers) .If I let it execute every 10 minutes will it terminate the already running cron job or will it just start a new one and leave the other one running?
If it stops the other job is there a way I am able to make it run multiple at the same time?
If it has any help this is my command for the cron job which is scheduled to run every 10 minutes
cd /home/forge/****.**********.*** && ./status.py
Thanks in advance.
If a later job stops an older job, should be handled in the executed job description. But if your job runs for 30minutes, you will see two status.py jobs after 10minutes, and three after 20min. When the first job terminates at minute 30, another one will be started and you still have three jobs, then at minute 40 the second job terminates and another one is started, so you will always have three running status.py
in the end.
Cron, as most unix tools, does not care if you do things wrong. The system just tries to fullfill what you told it to do.