fix(scheduled-runner): ретрай транзиентных ошибок отправки (522/5xx/429/сеть) вместо мгновенного failed + send_attempts
This commit is contained in:
@@ -224,6 +224,7 @@ const migrate = async () => {
|
||||
|
||||
// safe column alters (existing tables on prod may lack newer columns)
|
||||
await query(`ALTER TABLE categories ADD COLUMN IF NOT EXISTS is_active BOOLEAN DEFAULT true`);
|
||||
await query(`ALTER TABLE scheduled_posts ADD COLUMN IF NOT EXISTS send_attempts INT NOT NULL DEFAULT 0`);
|
||||
|
||||
console.log('[DB] Migrations applied');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user