I read about this implementation that deals with starting a cron task recursively. Cron implementation
I found that there was a bug in this part of the code: