fixed cron an interval in json, added log

This commit is contained in:
Rafael.Timmerberg 2013-05-27 02:57:56 +02:00
commit b4641b15e1
2 changed files with 12 additions and 9 deletions

View file

@ -71,9 +71,12 @@ def main():
while True: while True:
try: try:
time.sleep(1) time.sleep(10)
except error: for job in jobs:
print str(error) log.d(str(job))
except:
print "error"

View file

@ -147,15 +147,15 @@
"week": "*", "week": "*",
"hour": "*", "hour": "*",
"minute": "*/1", "minute": "*/1",
"second": "*", "second": "0",
"comment": "Cron Job" "comment": "Cron Job"
}, },
"do_every_x_times" : { "do_every_x_times" : {
"days": "*", "days": 0,
"weeks": "*", "weeks": 0,
"hours": "*", "hours": 0,
"minutes": "5", "minutes": 5,
"seconds": "", "seconds": 0,
"comment": "Interval Job" "comment": "Interval Job"
}, },
"next_christmas" : { "next_christmas" : {