Files
mv2_simple_crx/server/config/cron_tasks.js
张成 d75c9873c3 1
2026-03-18 18:12:07 +08:00

26 lines
700 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 写死定时任务配置(不走数据库)
* cron_expression 参考 node-cron
*/
export const cron_task_list = [
// 任务流:先跑列表,再依赖列表 URL 跑详情+评论
{
name: 'amazon_search_detail_reviews_every_1h',
cron_expression: '*/15 * * * *', // 15分钟执行一次
type: 'flow',
flow_name: 'amazon_search_detail_reviews',
flow_payload: {
// 插件参数category_keyword / sort_by / limit
category_keyword: '野餐包',
// featured / price_asc / price_desc / review / newest / bestseller
sort_by: 'bestseller',
limit: 100,
// flow 自己的参数
reviews_limit: 50,
gap_ms: 500
}
}
];