changed fatal lookup timeout value for default, changed production cron to every 10 minutes
parent
cf73f37a5d
commit
1dd1f177cf
|
@ -1,3 +1,3 @@
|
|||
lookup:
|
||||
interval: 10 # seconds to keep trying lookup of changed value
|
||||
timeout: 2 # minutes before giving up - failed set
|
||||
timeout: 5 # minutes before giving up - failed set
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
announce: false
|
||||
pro: true
|
||||
cron: 30 # interval in minutes to check to see if public ip has changed, comment to run just once or set to falsey
|
||||
cron: 10 # interval in minutes to check to see if public ip has changed, comment to run just once or set to falsey
|
||||
lookup:
|
||||
interval: 10 # seconds to keep trying lookup of changed value
|
||||
timeout: 2 # minutes before giving up - failed set
|
||||
interval: 30 # seconds to keep trying lookup of changed value
|
||||
timeout: 10 # minutes before giving up - failed set
|
||||
|
|
4
index.js
4
index.js
|
@ -67,10 +67,10 @@ async function checkIP () {
|
|||
notify(res)
|
||||
const fail = setTimeout(()=>{
|
||||
clearInterval(check)
|
||||
msg=`${timestamp()}, ${opts.network}: FATAL the pending change of ip address was not realized in ${timeout*(opts.debug ? 10 : 60)} seconds. Human attention required`
|
||||
msg=`${timestamp()}, ${opts.network}: FATAL the pending change of ip address was not realized in ${timeout} minutes. Human attention required`
|
||||
console.log(msg)
|
||||
notify(msg)
|
||||
},timeout*1000*(opts.debug ? 10 : 60))
|
||||
},timeout*1000*60)
|
||||
const check = setInterval(async ()=>{
|
||||
let [err,info] = await to(lookup(rname))
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in New Issue