Sched.py: Add Cron Scheduling Functionality

Current Library supports very basic entry & entryabs functions. It also doesn’t provide repeated scheduling feature. (Cron based)

APScheduler provides that functionality.

2 Likes

Agree that complete cron based will be huge lib.
But how about simple delay based, would be simple extension to current code.
For simple use case to run code periodically

@pf_moore what do you think?
Something like:
def schedule(delay,actionCallback,args):
sched.entry(0,1,loop,(delay,action, args))

def loop(delay, action, args):
action(**args,**kwargs)
sched.entry(delay,priority, loop,action,args)