Spaces:
Sleeping

File size: 761 Bytes
1305386
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { AggregationCounterRef } from './IMessage';

export interface IAggregationCounter {
  _id?: string | null;
  requestId: string;
  stepId: string;
  aggregationKey: string; // requestId:stepId
  targetMessageType: string;
  expectedCount: number;
  currentCount: number;
  status: 'waiting' | 'ready' | 'processing' | 'completed' | 'failed';
  createdAt: Date;
  updatedAt: Date;
  timeoutAt?: Date | null;
  parentResults?: any; // Results from previous step
  completedTaskMessageIds: string[]; // Danh sách _id của các task messages đã hoàn thành
  delayMs?: number; // Số milliseconds delay khi tạo target message
  targetMessageAggregationCounters?: AggregationCounterRef[]; // Aggregation counters cho target message
}