clear ungraceful timer discord notify
This commit is contained in:
parent
3f7233698a
commit
9337846ad0
@ -43,11 +43,12 @@ exports.handler = async function(context, event, callback) {
|
||||
return callback(null, response);
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
let timer = setTimeout(() => {
|
||||
console.log("Ungraceful finish: running out of time");
|
||||
callback(null, response);
|
||||
}, 9500);
|
||||
|
||||
await Promise.all(promises);
|
||||
clearTimeout(timer);
|
||||
return callback(null, response);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user