@taicode/common-server 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/output/index.d.ts +1 -0
- package/output/index.d.ts.map +1 -1
- package/output/index.js +1 -0
- package/output/redis-queue/index.d.ts +1 -0
- package/output/redis-queue/index.d.ts.map +1 -1
- package/output/redis-queue/redis-batch-consumer.d.ts +4 -9
- package/output/redis-queue/redis-batch-consumer.d.ts.map +1 -1
- package/output/redis-queue/redis-batch-consumer.js +3 -55
- package/output/redis-queue/redis-batch-consumer.test.d.ts +5 -0
- package/output/redis-queue/redis-batch-consumer.test.d.ts.map +1 -1
- package/output/redis-queue/redis-queue-common.d.ts +15 -3
- package/output/redis-queue/redis-queue-common.d.ts.map +1 -1
- package/output/redis-queue/redis-queue-common.js +80 -0
- package/output/redis-queue/redis-queue-common.test.d.ts +17 -0
- package/output/redis-queue/redis-queue-common.test.d.ts.map +1 -1
- package/output/redis-queue/redis-queue-common.test.js +11 -11
- package/output/redis-queue/redis-queue-consumer.d.ts +6 -27
- package/output/redis-queue/redis-queue-consumer.d.ts.map +1 -1
- package/output/redis-queue/redis-queue-consumer.js +23 -187
- package/output/redis-queue/redis-queue-consumer.test.d.ts +5 -0
- package/output/redis-queue/redis-queue-consumer.test.d.ts.map +1 -1
- package/output/redis-queue/redis-queue-provider.d.ts +14 -15
- package/output/redis-queue/redis-queue-provider.d.ts.map +1 -1
- package/output/redis-queue/redis-queue-provider.js +8 -9
- package/output/redis-queue/redis-queue-provider.test.d.ts +5 -0
- package/output/redis-queue/redis-queue-provider.test.d.ts.map +1 -1
- package/output/redis-queue/types.d.ts +47 -9
- package/output/redis-queue/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/output/logger/logger.d.ts +0 -33
- package/output/logger/logger.d.ts.map +0 -1
- package/output/logger/logger.js +0 -65
- package/output/logger/logger.test.d.ts +0 -2
- package/output/logger/logger.test.d.ts.map +0 -1
- package/output/logger/logger.test.js +0 -87
- package/output/redis-queue/batch-consumer.d.ts +0 -107
- package/output/redis-queue/batch-consumer.d.ts.map +0 -1
- package/output/redis-queue/batch-consumer.js +0 -492
- package/output/redis-queue/batch-consumer.test.d.ts +0 -2
- package/output/redis-queue/batch-consumer.test.d.ts.map +0 -1
- package/output/redis-queue/batch-consumer.test.js +0 -216
- package/output/redis-queue/batch-redis-queue.d.ts +0 -136
- package/output/redis-queue/batch-redis-queue.d.ts.map +0 -1
- package/output/redis-queue/batch-redis-queue.js +0 -583
- package/output/redis-queue/batch-redis-queue.test.d.ts +0 -2
- package/output/redis-queue/batch-redis-queue.test.d.ts.map +0 -1
- package/output/redis-queue/batch-redis-queue.test.js +0 -243
- package/output/redis-queue/redis-queue.d.ts +0 -129
- package/output/redis-queue/redis-queue.d.ts.map +0 -1
- package/output/redis-queue/redis-queue.js +0 -557
- package/output/redis-queue/redis-queue.test.d.ts +0 -2
- package/output/redis-queue/redis-queue.test.d.ts.map +0 -1
- package/output/redis-queue/redis-queue.test.js +0 -234
- package/output/redis-queue/registry.d.ts +0 -57
- package/output/redis-queue/registry.d.ts.map +0 -1
- package/output/redis-queue/registry.js +0 -30
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, afterEach } from 'vitest';
|
|
2
|
-
import { catchIt } from '@taicode/common-base';
|
|
3
|
-
import { BatchRedisQueue } from './batch-redis-queue';
|
|
4
|
-
const REDIS_URL = process.env.REDIS_URL || 'redis://localhost:6379';
|
|
5
|
-
describe('BatchRedisQueue', () => {
|
|
6
|
-
const queues = [];
|
|
7
|
-
afterEach(async () => {
|
|
8
|
-
for (const queue of queues) {
|
|
9
|
-
try {
|
|
10
|
-
await queue.clear();
|
|
11
|
-
}
|
|
12
|
-
catch (error) {
|
|
13
|
-
// 忽略清理错误
|
|
14
|
-
}
|
|
15
|
-
queue.disconnect();
|
|
16
|
-
}
|
|
17
|
-
queues.length = 0;
|
|
18
|
-
});
|
|
19
|
-
const createQueue = (handler, options) => {
|
|
20
|
-
const uniqueKey = `test:batch:${Date.now()}:${Math.random()}`;
|
|
21
|
-
const queue = new BatchRedisQueue({
|
|
22
|
-
redisUrl: REDIS_URL,
|
|
23
|
-
queueKey: uniqueKey,
|
|
24
|
-
batchSize: 5,
|
|
25
|
-
consumerInterval: 100,
|
|
26
|
-
maxRetries: 2,
|
|
27
|
-
...options,
|
|
28
|
-
handler,
|
|
29
|
-
});
|
|
30
|
-
queues.push(queue);
|
|
31
|
-
return queue;
|
|
32
|
-
};
|
|
33
|
-
describe('连接管理', () => {
|
|
34
|
-
it('应该能够成功连接和断开 Redis', async () => {
|
|
35
|
-
const queue = createQueue(async () => catchIt(() => { }));
|
|
36
|
-
await queue.connect();
|
|
37
|
-
const health = await queue.health();
|
|
38
|
-
expect(health).toBe(true);
|
|
39
|
-
queue.disconnect();
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
describe('批量任务处理', () => {
|
|
43
|
-
it('应该批量处理任务', async () => {
|
|
44
|
-
const processedBatches = [];
|
|
45
|
-
const queue = createQueue(async (dataList) => {
|
|
46
|
-
processedBatches.push(dataList.map(d => d.value));
|
|
47
|
-
return catchIt(() => { });
|
|
48
|
-
});
|
|
49
|
-
await queue.connect();
|
|
50
|
-
await queue.enqueue(Array.from({ length: 10 }, (_, i) => ({ value: i })));
|
|
51
|
-
await new Promise(resolve => setTimeout(resolve, 2500));
|
|
52
|
-
expect(processedBatches.length).toBe(2); // 2 批,每批 5 个
|
|
53
|
-
expect(processedBatches[0].length).toBe(5);
|
|
54
|
-
expect(processedBatches[1].length).toBe(5);
|
|
55
|
-
});
|
|
56
|
-
it('应该能够处理大量任务', async () => {
|
|
57
|
-
let processedCount = 0;
|
|
58
|
-
const queue = createQueue(async (dataList) => {
|
|
59
|
-
processedCount += dataList.length;
|
|
60
|
-
return catchIt(() => { });
|
|
61
|
-
}, { batchSize: 50 });
|
|
62
|
-
await queue.connect();
|
|
63
|
-
await queue.enqueue(Array.from({ length: 200 }, (_, i) => ({ value: i })));
|
|
64
|
-
await new Promise(resolve => setTimeout(resolve, 6000));
|
|
65
|
-
expect(processedCount).toBe(200);
|
|
66
|
-
}, 10000);
|
|
67
|
-
});
|
|
68
|
-
describe('错误处理和重试', () => {
|
|
69
|
-
it('失败的批次应该自动重试', async () => {
|
|
70
|
-
let attemptCount = 0;
|
|
71
|
-
const queue = createQueue(async () => {
|
|
72
|
-
attemptCount++;
|
|
73
|
-
if (attemptCount < 2) {
|
|
74
|
-
throw new Error('Simulated batch failure');
|
|
75
|
-
}
|
|
76
|
-
return catchIt(() => { });
|
|
77
|
-
}, { batchSize: 3 });
|
|
78
|
-
await queue.connect();
|
|
79
|
-
await queue.enqueue([{ value: 1 }, { value: 2 }]);
|
|
80
|
-
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
81
|
-
expect(attemptCount).toBe(2);
|
|
82
|
-
});
|
|
83
|
-
it('超过最大重试次数应该标记为失败', async () => {
|
|
84
|
-
const queue = createQueue(async () => {
|
|
85
|
-
throw new Error('Always fails');
|
|
86
|
-
}, { batchSize: 2, maxRetries: 1 });
|
|
87
|
-
await queue.connect();
|
|
88
|
-
await queue.enqueue([{ value: 1 }, { value: 2 }]);
|
|
89
|
-
await new Promise(resolve => setTimeout(resolve, 2500));
|
|
90
|
-
const stats = await queue.statistics();
|
|
91
|
-
expect(stats.failed).toBe(2);
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
describe('幂等性', () => {
|
|
95
|
-
it('应该支持在 data 中指定 id 来实现幂等性', async () => {
|
|
96
|
-
let processCount = 0;
|
|
97
|
-
const queue = createQueue(async (dataList) => {
|
|
98
|
-
processCount += dataList.length;
|
|
99
|
-
return catchIt(() => { });
|
|
100
|
-
}, { batchSize: 10 });
|
|
101
|
-
await queue.connect();
|
|
102
|
-
await queue.enqueue({ id: 'unique-1', value: 1 });
|
|
103
|
-
await queue.enqueue({ id: 'unique-1', value: 2 });
|
|
104
|
-
await queue.enqueue({ id: 'unique-2', value: 3 });
|
|
105
|
-
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
106
|
-
expect(processCount).toBe(2); // 只处理 unique-1 和 unique-2
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
describe('延迟处理', () => {
|
|
110
|
-
it('应该支持延迟批量处理', async () => {
|
|
111
|
-
const startTime = Date.now();
|
|
112
|
-
let processTime = 0;
|
|
113
|
-
const queue = createQueue(async (dataList) => {
|
|
114
|
-
processTime = Date.now() - startTime;
|
|
115
|
-
return catchIt(() => { });
|
|
116
|
-
}, { batchSize: 3, processingDelay: 2000 });
|
|
117
|
-
await queue.connect();
|
|
118
|
-
await queue.enqueue([{ value: 1 }, { value: 2 }, { value: 3 }]);
|
|
119
|
-
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
120
|
-
expect(processTime).toBe(0);
|
|
121
|
-
await new Promise(resolve => setTimeout(resolve, 2500));
|
|
122
|
-
expect(processTime).toBeGreaterThanOrEqual(1900);
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
describe('队列操作', () => {
|
|
126
|
-
it('应该正确返回队列统计信息', async () => {
|
|
127
|
-
const queue = createQueue(async () => {
|
|
128
|
-
await new Promise(resolve => setTimeout(resolve, 100));
|
|
129
|
-
return catchIt(() => { });
|
|
130
|
-
});
|
|
131
|
-
await queue.connect();
|
|
132
|
-
await queue.enqueue(Array.from({ length: 10 }, (_, i) => ({ value: i })));
|
|
133
|
-
await new Promise(resolve => setTimeout(resolve, 50));
|
|
134
|
-
const stats1 = await queue.statistics();
|
|
135
|
-
expect(stats1.pending).toBeGreaterThan(0);
|
|
136
|
-
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
137
|
-
const stats2 = await queue.statistics();
|
|
138
|
-
expect(stats2.completed).toBe(10);
|
|
139
|
-
});
|
|
140
|
-
it('应该能够清空队列', async () => {
|
|
141
|
-
const queue = createQueue(async () => catchIt(() => { }));
|
|
142
|
-
await queue.connect();
|
|
143
|
-
await queue.enqueue([{ value: 1 }, { value: 2 }]);
|
|
144
|
-
await queue.clear();
|
|
145
|
-
const stats = await queue.statistics();
|
|
146
|
-
expect(stats.pending).toBe(0);
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
describe('并发安全性', () => {
|
|
150
|
-
it('多个批量队列实例应该能安全地处理任务', async () => {
|
|
151
|
-
const queueKey = `test-batch-concurrent-${Date.now()}`;
|
|
152
|
-
let totalProcessed = 0;
|
|
153
|
-
const handler = async (dataList) => {
|
|
154
|
-
totalProcessed += dataList.length;
|
|
155
|
-
await new Promise(resolve => setTimeout(resolve, 100));
|
|
156
|
-
return catchIt(() => { });
|
|
157
|
-
};
|
|
158
|
-
const queue1 = new BatchRedisQueue({
|
|
159
|
-
redisUrl: REDIS_URL,
|
|
160
|
-
queueKey,
|
|
161
|
-
batchSize: 5,
|
|
162
|
-
handler,
|
|
163
|
-
});
|
|
164
|
-
const queue2 = new BatchRedisQueue({
|
|
165
|
-
redisUrl: REDIS_URL,
|
|
166
|
-
queueKey,
|
|
167
|
-
batchSize: 5,
|
|
168
|
-
handler,
|
|
169
|
-
});
|
|
170
|
-
queues.push(queue1, queue2);
|
|
171
|
-
await queue1.connect();
|
|
172
|
-
await queue2.connect();
|
|
173
|
-
await queue1.enqueue(Array.from({ length: 20 }, (_, i) => ({ value: i })));
|
|
174
|
-
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
175
|
-
expect(totalProcessed).toBe(20);
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
describe('批量数据边界测试', () => {
|
|
179
|
-
it('应该能够处理包含大量数据的批次', async () => {
|
|
180
|
-
let receivedBatch = false;
|
|
181
|
-
const queue = createQueue(async (dataList) => {
|
|
182
|
-
expect(dataList.length).toBe(10);
|
|
183
|
-
dataList.forEach(data => {
|
|
184
|
-
expect(data.content.length).toBe(1000);
|
|
185
|
-
});
|
|
186
|
-
receivedBatch = true;
|
|
187
|
-
return catchIt(() => { });
|
|
188
|
-
}, { batchSize: 10 });
|
|
189
|
-
await queue.connect();
|
|
190
|
-
await queue.enqueue(Array.from({ length: 10 }, () => ({
|
|
191
|
-
content: 'x'.repeat(1000)
|
|
192
|
-
})));
|
|
193
|
-
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
194
|
-
expect(receivedBatch).toBe(true);
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
describe('批量错误处理边界测试', () => {
|
|
198
|
-
it('批量处理失败应该重试所有任务', async () => {
|
|
199
|
-
let attemptCount = 0;
|
|
200
|
-
const queue = createQueue(async () => {
|
|
201
|
-
attemptCount++;
|
|
202
|
-
if (attemptCount < 2) {
|
|
203
|
-
throw new Error('Batch processing failed');
|
|
204
|
-
}
|
|
205
|
-
return catchIt(() => { });
|
|
206
|
-
}, { batchSize: 3, maxRetries: 2 });
|
|
207
|
-
await queue.connect();
|
|
208
|
-
await queue.enqueue([{ value: 1 }, { value: 2 }, { value: 3 }]);
|
|
209
|
-
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
210
|
-
expect(attemptCount).toBe(2);
|
|
211
|
-
const stats = await queue.statistics();
|
|
212
|
-
expect(stats.completed).toBe(3);
|
|
213
|
-
});
|
|
214
|
-
it('批量处理超过最大重试次数应该标记为失败', async () => {
|
|
215
|
-
let attemptCount = 0;
|
|
216
|
-
const queue = createQueue(async () => {
|
|
217
|
-
attemptCount++;
|
|
218
|
-
throw new Error('Always fails');
|
|
219
|
-
}, { batchSize: 3, maxRetries: 1 });
|
|
220
|
-
await queue.connect();
|
|
221
|
-
await queue.enqueue([{ value: 1 }, { value: 2 }, { value: 3 }]);
|
|
222
|
-
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
223
|
-
expect(attemptCount).toBe(2); // 初始 + 1 次重试
|
|
224
|
-
const stats = await queue.statistics();
|
|
225
|
-
expect(stats.failed).toBe(3);
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
describe('批量延迟处理边界测试', () => {
|
|
229
|
-
it('延迟时间为 0 的批量任务应该立即处理', async () => {
|
|
230
|
-
const startTime = Date.now();
|
|
231
|
-
let processTime = 0;
|
|
232
|
-
const queue = createQueue(async () => {
|
|
233
|
-
processTime = Date.now() - startTime;
|
|
234
|
-
return catchIt(() => { });
|
|
235
|
-
}, { batchSize: 5, processingDelay: 0 });
|
|
236
|
-
await queue.connect();
|
|
237
|
-
await queue.enqueue(Array.from({ length: 5 }, (_, i) => ({ value: i })));
|
|
238
|
-
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
239
|
-
expect(processTime).toBeGreaterThan(0);
|
|
240
|
-
expect(processTime).toBeLessThan(2000);
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
});
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import type { TaskQueueConfig, TaskData, Task, QueueStats } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* 通用任务队列类(泛型)
|
|
4
|
-
*
|
|
5
|
-
* 提供基于 Redis 的任务队列功能,支持:
|
|
6
|
-
* - 任务入队和持久化
|
|
7
|
-
* - 自动重试机制
|
|
8
|
-
* - 任务状态追踪
|
|
9
|
-
* - 分布式消费
|
|
10
|
-
*
|
|
11
|
-
* @template T 任务数据类型
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* interface EmailTask {
|
|
16
|
-
* to: string
|
|
17
|
-
* subject: string
|
|
18
|
-
* }
|
|
19
|
-
*
|
|
20
|
-
* const queue = new RedisQueue<EmailTask>({
|
|
21
|
-
* redisUrl: 'redis://localhost:6379',
|
|
22
|
-
* queueKey: 'email-queue',
|
|
23
|
-
* concurrency: 5,
|
|
24
|
-
* handler: async (data) => {
|
|
25
|
-
* await sendEmail(data.to, data.subject)
|
|
26
|
-
* return catchIt(() => {})
|
|
27
|
-
* }
|
|
28
|
-
* })
|
|
29
|
-
*
|
|
30
|
-
* // 连接 Redis(自动启动消费者)
|
|
31
|
-
* await queue.connect()
|
|
32
|
-
*
|
|
33
|
-
* // 入队任务(自动开始处理)
|
|
34
|
-
* await queue.enqueue({ to: 'user@example.com', subject: 'Hello' })
|
|
35
|
-
*
|
|
36
|
-
* // 获取队列统计信息(O(1) 时间复杂度)
|
|
37
|
-
* const stats = await queue.statistics()
|
|
38
|
-
* console.log(stats) // { pending: 5, processing: 2, completed: 2, failed: 1 }
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare class RedisQueue<T extends TaskData = TaskData> {
|
|
42
|
-
private consumerRunning;
|
|
43
|
-
private redis;
|
|
44
|
-
private consumerInterval;
|
|
45
|
-
private recoveryInterval;
|
|
46
|
-
private processingTasks;
|
|
47
|
-
private readonly config;
|
|
48
|
-
private readonly handler;
|
|
49
|
-
private readonly failedQueue;
|
|
50
|
-
private readonly pendingQueue;
|
|
51
|
-
private readonly processingQueue;
|
|
52
|
-
private readonly completedQueue;
|
|
53
|
-
constructor(config: TaskQueueConfig<string, T>);
|
|
54
|
-
/**
|
|
55
|
-
* 连接 Redis 并自动启动消费者
|
|
56
|
-
*/
|
|
57
|
-
connect(): Promise<void>;
|
|
58
|
-
/**
|
|
59
|
-
* 断开 Redis 连接并停止消费者
|
|
60
|
-
*/
|
|
61
|
-
disconnect(): void;
|
|
62
|
-
/**
|
|
63
|
-
* 将任务推入队列(支持单个或批量)
|
|
64
|
-
* @param data 任务数据(单个或数组)。可以在 data 中包含 `id` 字段来实现幂等性
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* // 普通任务,自动生成 ID
|
|
68
|
-
* await queue.enqueue({ to: 'user@example.com' })
|
|
69
|
-
*
|
|
70
|
-
* // 幂等任务,手动指定 ID,重复提交会被忽略
|
|
71
|
-
* await queue.enqueue({ id: 'email-123', to: 'user@example.com' })
|
|
72
|
-
* await queue.enqueue({ id: 'email-123', to: 'user@example.com' }) // 会被跳过
|
|
73
|
-
*/
|
|
74
|
-
enqueue(data: T[]): Promise<string[]>;
|
|
75
|
-
enqueue(data: T): Promise<string>;
|
|
76
|
-
/**
|
|
77
|
-
* 获取任务详情
|
|
78
|
-
*/
|
|
79
|
-
getTask(taskId: string): Promise<Task<T> | null>;
|
|
80
|
-
/**
|
|
81
|
-
* 更新任务状态并移动到对应队列(原子操作)
|
|
82
|
-
*/
|
|
83
|
-
private applyStatus;
|
|
84
|
-
/**
|
|
85
|
-
* 根据状态获取对应的队列键
|
|
86
|
-
*/
|
|
87
|
-
private getQueueByStatus;
|
|
88
|
-
/**
|
|
89
|
-
* 恢复超时的任务
|
|
90
|
-
* 检查 processing 队列中的任务,将超时的任务重试或标记为失败
|
|
91
|
-
*/
|
|
92
|
-
private recoverStalledTasks;
|
|
93
|
-
/**
|
|
94
|
-
* 处理单个任务
|
|
95
|
-
*/
|
|
96
|
-
private processTask;
|
|
97
|
-
/**
|
|
98
|
-
* 启动恢复机制(内部方法,自动调用)
|
|
99
|
-
*/
|
|
100
|
-
private startRecovery;
|
|
101
|
-
/**
|
|
102
|
-
* 停止恢复机制(内部方法,自动调用)
|
|
103
|
-
*/
|
|
104
|
-
private stopRecovery;
|
|
105
|
-
/**
|
|
106
|
-
* 启动消费者(内部方法,自动调用)
|
|
107
|
-
*/
|
|
108
|
-
private startConsumer;
|
|
109
|
-
/**
|
|
110
|
-
* 停止消费者(内部方法,自动调用)
|
|
111
|
-
*/
|
|
112
|
-
private stopConsumer;
|
|
113
|
-
/**
|
|
114
|
-
* 获取队列统计信息
|
|
115
|
-
* 返回队列中各种状态任务的详细数量
|
|
116
|
-
*
|
|
117
|
-
* 使用分离队列设计,O(1) 时间复杂度
|
|
118
|
-
*/
|
|
119
|
-
statistics(): Promise<QueueStats>;
|
|
120
|
-
/**
|
|
121
|
-
* 清空所有队列
|
|
122
|
-
*/
|
|
123
|
-
clear(): Promise<void>;
|
|
124
|
-
/**
|
|
125
|
-
* 健康检查
|
|
126
|
-
*/
|
|
127
|
-
health(): Promise<boolean>;
|
|
128
|
-
}
|
|
129
|
-
//# sourceMappingURL=redis-queue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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