Update
This commit is contained in:
@@ -28,7 +28,6 @@ async function bootstrap() {
|
||||
`)
|
||||
);
|
||||
|
||||
|
||||
await app.get(SqsPosterWorker).start();
|
||||
|
||||
}
|
||||
|
||||
@@ -25,13 +25,12 @@ export class SqsPosterWorker {
|
||||
await this.notifyService.sendMessageToTele(`🚀 Worker started for ${await this.sqs.getQueueName()}`)
|
||||
|
||||
//check cookie
|
||||
if (!await this.xCacheService.isXCookiesAlive()) {
|
||||
this.xRouterService.verifyCookie().catch((err) => {
|
||||
console.error(`SqsPosterWorker_verifyCookie`);
|
||||
console.error(err);
|
||||
});
|
||||
|
||||
this.xCacheService.isXCookiesAlive().then(isLive => {
|
||||
this.logger.log(`cache cookie is ${isLive ? 'LIVE' : 'DIE'}`);
|
||||
if (!isLive) {
|
||||
this.xRouterService.verifyCookie();
|
||||
}
|
||||
});
|
||||
|
||||
let ReceiptHandle = '';
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user