You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chajia/lib/constants/address-candidates-queue.ts

12 lines
457 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/** 地址候选 job 结果 Redis 键前缀 */
export const ADDRESS_CANDIDATES_RESULT_PREFIX = "address-candidates:result:";
/** 结果 TTL */
export const ADDRESS_CANDIDATES_RESULT_TTL_SECONDS = 600;
/** API 轮询间隔(毫秒) */
export const ADDRESS_CANDIDATES_POLL_MS = 500;
/** 队列 job 长时间 waiting 且无 active job 时才 spawn避免与 Worker 双开 Playwright */
export const ADDRESS_CANDIDATES_QUEUE_STALL_MS = 60_000;