I use Django framework on webfaction and have 5 different cron jobs. One of them lasts much longer than others and sometimes gets stuck (30-120 seconds or more).
I have already set that cron job to run every other minute, however, If is isn't completed, another process with
/home/aemdy/webapps/hvan/myproject/myfile.py starts that causes high memory usage, slow site work and leads to apache crash or memory leak.
I don't want to set it to
*/3 * * * *, however, I want something like:
if this process in process list: pass else: run process
Can this be done?