Configurable interval
This commit is contained in:
parent
077a8c4c59
commit
d292916850
2
index.js
2
index.js
|
|
@ -54,7 +54,7 @@ const main = async () => {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(`Unexpected error: ${err}`);
|
console.error(`Unexpected error: ${err}`);
|
||||||
}
|
}
|
||||||
setTimeout(main, 3000); // Run every 60 seconds
|
setTimeout(main, process.env.CHECK_INTERVAL * 1000); // Run every CHECK_INTERVAL seconds
|
||||||
};
|
};
|
||||||
|
|
||||||
const startup = async () => {
|
const startup = async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue