This commit is contained in:
NAME
2026-05-13 12:05:55 +00:00
parent 31129e23f6
commit 702a0d1ab5
2 changed files with 6 additions and 8 deletions
-1
View File
@@ -28,7 +28,6 @@ async function bootstrap() {
`) `)
); );
await app.get(SqsPosterWorker).start(); await app.get(SqsPosterWorker).start();
} }
+5 -6
View File
@@ -25,13 +25,12 @@ export class SqsPosterWorker {
await this.notifyService.sendMessageToTele(`🚀 Worker started for ${await this.sqs.getQueueName()}`) await this.notifyService.sendMessageToTele(`🚀 Worker started for ${await this.sqs.getQueueName()}`)
//check cookie //check cookie
if (!await this.xCacheService.isXCookiesAlive()) { this.xCacheService.isXCookiesAlive().then(isLive => {
this.xRouterService.verifyCookie().catch((err) => { this.logger.log(`cache cookie is ${isLive ? 'LIVE' : 'DIE'}`);
console.error(`SqsPosterWorker_verifyCookie`); if (!isLive) {
console.error(err); this.xRouterService.verifyCookie();
});
} }
});
let ReceiptHandle = ''; let ReceiptHandle = '';
while (true) { while (true) {