detect whether cron is running