fixed cron an interval in json, added log
This commit is contained in:
parent
e1025fda6c
commit
b4641b15e1
2 changed files with 12 additions and 9 deletions
|
|
@ -71,9 +71,12 @@ def main():
|
|||
|
||||
while True:
|
||||
try:
|
||||
time.sleep(1)
|
||||
except error:
|
||||
print str(error)
|
||||
time.sleep(10)
|
||||
for job in jobs:
|
||||
log.d(str(job))
|
||||
|
||||
except:
|
||||
print "error"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -147,15 +147,15 @@
|
|||
"week": "*",
|
||||
"hour": "*",
|
||||
"minute": "*/1",
|
||||
"second": "*",
|
||||
"second": "0",
|
||||
"comment": "Cron Job"
|
||||
},
|
||||
"do_every_x_times" : {
|
||||
"days": "*",
|
||||
"weeks": "*",
|
||||
"hours": "*",
|
||||
"minutes": "5",
|
||||
"seconds": "",
|
||||
"days": 0,
|
||||
"weeks": 0,
|
||||
"hours": 0,
|
||||
"minutes": 5,
|
||||
"seconds": 0,
|
||||
"comment": "Interval Job"
|
||||
},
|
||||
"next_christmas" : {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue