1
This commit is contained in:
@@ -55,7 +55,8 @@ export function get_app_config() {
|
||||
crx_src_path: must_get('CRX_SRC_PATH'),
|
||||
action_timeout_ms: get_int('ACTION_TIMEOUT_MS', 300000),
|
||||
puppeteer_headless: get_bool('PUPPETEER_HEADLESS', false),
|
||||
chrome_executable_path: (get_env('CHROME_EXECUTABLE_PATH') || '').trim() || path.resolve(__dirname, '../../chrome-win/chrome.exe')
|
||||
chrome_executable_path: (get_env('CHROME_EXECUTABLE_PATH') || '').trim() || path.resolve(__dirname, '../../chrome-win/chrome.exe'),
|
||||
log_invoke_action: get_bool('LOG_INVOKE_ACTION', true)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
export const cron_task_list = [
|
||||
// 示例:每 6 小时跑一次列表抓取
|
||||
// {
|
||||
// name: 'amazon_search_list_every_6h',
|
||||
// cron_expression: '0 */6 * * *',
|
||||
// action_name: 'amazon_search_list',
|
||||
// action_payload: { keyword: '午餐包', limit: 100 }
|
||||
// }
|
||||
{
|
||||
name: 'amazon_search_list_every_6h',
|
||||
cron_expression: '0 */1 * * *',
|
||||
action_name: 'amazon_search_list',
|
||||
action_payload: { keyword: '野餐包', limit: 100 }
|
||||
}
|
||||
];
|
||||
|
||||
@@ -2,6 +2,7 @@ import { get_app_config } from './app_config.js';
|
||||
|
||||
export function get_sequelize_options() {
|
||||
const cfg = get_app_config();
|
||||
console.log( 'get_sequelize_options', cfg.mysql );
|
||||
|
||||
return {
|
||||
host: cfg.mysql.host,
|
||||
|
||||
Reference in New Issue
Block a user