News for hackers. Stuff that matters.
Re:Schedule – Python job scheduling for humans by AnthonBerg on Saturday October 03, 2015 @09:39AM (#10323842)
I like the feel of it and the thought behind it, but ... while true, sleep?

I get very uncomfortable with any kind of polling, especially polling timers for checking for jobs with timespans between them. Maybe it's just me?

Re:Schedule – Python job scheduling for humans by est on Saturday October 03, 2015 @11:19AM (#10324184)
every cron or cron-like service has some kind of polling behind. Beanstalk, redis-queue, you name it. Many open source redis based scheduler are all implemented in a sleep(5) loop.

Even the Unix cron is implemented with a sleep() call

https://en.wikipedia.org/wiki/Cron#History

Re:Schedule – Python job scheduling for humans by drudru11 on Saturday October 03, 2015 @01:58PM (#10324728)
As another commentor noted, this is the way every system is implemented. It is simple, slightly inefficient, and deals with most of the nasty problems that arise when dealing with time on all systems today.