|
|
@ -135,15 +135,22 @@ CREATE TABLE `xxl_job_lock`
|
|
|
|
## —————————————————————— init data ——————————————————
|
|
|
|
## —————————————————————— init data ——————————————————
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`)
|
|
|
|
INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `address_type`, `address_list`, `update_time`)
|
|
|
|
VALUES (1, 'xxl-job-executor-sample', '示例执行器', 0, NULL, '2018-11-03 22:21:31');
|
|
|
|
VALUES (1, 'xxl-job-executor-sample', '通用执行器Sample', 0, NULL, now()),
|
|
|
|
|
|
|
|
(2, 'xxl-job-executor-sample-ai', 'AI执行器Sample', 0, NULL, now());
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`,
|
|
|
|
INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`,
|
|
|
|
`schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`,
|
|
|
|
`schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`,
|
|
|
|
`executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`,
|
|
|
|
`executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`,
|
|
|
|
`executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`,
|
|
|
|
`executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`,
|
|
|
|
`child_jobid`)
|
|
|
|
`child_jobid`)
|
|
|
|
VALUES (1, 1, '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', 'CRON', '0 0 0 * * ? *',
|
|
|
|
VALUES (1, 1, '示例任务01', now(), now(), 'XXL', '', 'CRON', '0 0 0 * * ? *',
|
|
|
|
'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
|
|
|
|
'DO_NOTHING', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
|
|
|
|
|
|
|
|
'2018-11-03 22:21:31', ''),
|
|
|
|
|
|
|
|
(2, 2, 'Ollama示例任务01', now(), now(), 'XXL', '', 'CRON', '0 0 0 * * ? *',
|
|
|
|
|
|
|
|
'DO_NOTHING', 'FIRST', 'ollamaJobHandler', '{
|
|
|
|
|
|
|
|
"input": "慢SQL问题分析思路",
|
|
|
|
|
|
|
|
"prompt": "你是一个研发工程师,擅长解决技术类问题。"
|
|
|
|
|
|
|
|
}', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化',
|
|
|
|
'2018-11-03 22:21:31', '');
|
|
|
|
'2018-11-03 22:21:31', '');
|
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO `xxl_job_user`(`id`, `username`, `password`, `role`, `permission`)
|
|
|
|
INSERT INTO `xxl_job_user`(`id`, `username`, `password`, `role`, `permission`)
|
|
|
|