Crontab setting can use lot of resources


#1

There is program /etc/myDevices/crontab.sh

If this script execution time is more that 1 minute the crontab start same script again and again, this is a problem on slow machine like raspberry pi version A.

Every schedulet program need enough execution time window or there can be same program started more that ones!

I thing that better crontab setting is something like:

0,5,10,15,25,30,35,40,45,50,55 * * * * /etc/myDevices/crontab.sh


#2

Hi @ilkka.seittenranta, welcome to the Cayenne Community and thank you for sharing your suggestion!

Have you see this happen on your Pi A? It looks like the only purpose of this script is to monitor and restart our Cayenne Agent service which I wouldn’t expect to come anywhere near a minute but maybe on a slow device under load?

Either way, there should be no harm in changing the crontab schedule to something you desire on your local Pi if that’s what you prefer.