Azure WebJob: Force stop if running longer than X mins
You might want a second webjob that you can incorporate a healthcheck and restart the primary webjob if it detects no activity in your processes.
Another idea could be to use azure automation and have a powershell script that just restarts the webjob every hour.
I have python webjobs running on Azure. There are times when the script hangs because of which I need to force restart it so next iteration can pick it up.
How do I configure force stopping a webjob if running longer than 1 hour? Basically I want to mimic task scheduler's behavior.
My files on the webjob:

run.cmd
D:\home\Python35\python.exe main.py
main.py
just another python file
settings.job
{"is_singleton":true}

At a given time, I want only 1 instance of the job running.
Edit (Answer): As a workaround, I changed continuous webjob to triggered one. And added this in app setting:

WEBJOBS_IDLE_TIMEOUT = 120

I'm printing something on the console every now and then. If no CPU activity is detected for 2 mins, the job will be aborted.