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:
|
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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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" : {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue