28 lines
1.5 KiB
MySQL
28 lines
1.5 KiB
MySQL
|
|
create table fad_oa.xxl_job_log
|
|||
|
|
(
|
|||
|
|
id bigint auto_increment
|
|||
|
|
primary key,
|
|||
|
|
job_group int not null comment '执行器主键ID',
|
|||
|
|
job_id int not null comment '任务,主键ID',
|
|||
|
|
executor_address varchar(255) null comment '执行器地址,本次执行的地址',
|
|||
|
|
executor_handler varchar(255) null comment '执行器任务handler',
|
|||
|
|
executor_param varchar(512) null comment '执行器任务参数',
|
|||
|
|
executor_sharding_param varchar(20) null comment '执行器任务分片参数,格式如 1/2',
|
|||
|
|
executor_fail_retry_count int default 0 not null comment '失败重试次数',
|
|||
|
|
trigger_time datetime null comment '调度-时间',
|
|||
|
|
trigger_code int not null comment '调度-结果',
|
|||
|
|
trigger_msg text null comment '调度-日志',
|
|||
|
|
handle_time datetime null comment '执行-时间',
|
|||
|
|
handle_code int not null comment '执行-状态',
|
|||
|
|
handle_msg text null comment '执行-日志',
|
|||
|
|
alarm_status tinyint default 0 not null comment '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败'
|
|||
|
|
)
|
|||
|
|
charset = utf8mb4;
|
|||
|
|
|
|||
|
|
create index I_handle_code
|
|||
|
|
on fad_oa.xxl_job_log (handle_code);
|
|||
|
|
|
|||
|
|
create index I_trigger_time
|
|||
|
|
on fad_oa.xxl_job_log (trigger_time);
|
|||
|
|
|