feat: 添加过载保护、背压和熔断机制
This commit is contained in:
@@ -157,7 +157,7 @@ func (s *Store) RecoverPendingTasks() (int, error) {
|
||||
defer s.mu.Unlock()
|
||||
|
||||
result, err := s.db.Exec(
|
||||
`UPDATE tasks SET state = 'FAILED', error_message = 'gateway restart' WHERE state IN ('RUNNING', 'STREAMING')`)
|
||||
`UPDATE tasks SET state = 'FAILED', error_message = 'gateway restart' WHERE state IN ('RUNNING', 'STREAMING', 'QUEUED')`)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user