@@ -11,32 +11,26 @@ class SysJob(Base):
1111 __tablename__ = 'sys_job'
1212
1313 job_id = Column (Integer , primary_key = True , autoincrement = True , comment = '任务ID' )
14- job_name = Column (String (64 , collation = 'utf8_general_ci' ), nullable = False , comment = '任务名称' )
15- job_group = Column (String (64 , collation = 'utf8_general_ci' ), nullable = False , default = 'default' , comment = '任务组名' )
16- job_executor = Column (
17- String (64 , collation = 'utf8_general_ci' ), nullable = False , default = 'default' , comment = '任务执行器'
18- )
19- invoke_target = Column (String (500 , collation = 'utf8_general_ci' ), nullable = False , comment = '调用目标字符串' )
20- job_args = Column (String (255 , collation = 'utf8_general_ci' ), nullable = True , comment = '位置参数' )
21- job_kwargs = Column (String (255 , collation = 'utf8_general_ci' ), nullable = True , comment = '关键字参数' )
22- cron_expression = Column (
23- String (255 , collation = 'utf8_general_ci' ), nullable = True , default = '' , comment = 'cron执行表达式'
24- )
14+ job_name = Column (String (64 ), nullable = True , default = '' , comment = '任务名称' )
15+ job_group = Column (String (64 ), nullable = True , default = 'default' , comment = '任务组名' )
16+ job_executor = Column (String (64 ), nullable = True , default = 'default' , comment = '任务执行器' )
17+ invoke_target = Column (String (500 ), nullable = False , comment = '调用目标字符串' )
18+ job_args = Column (String (255 ), nullable = True , default = '' , comment = '位置参数' )
19+ job_kwargs = Column (String (255 ), nullable = True , default = '' , comment = '关键字参数' )
20+ cron_expression = Column (String (255 ), nullable = True , default = '' , comment = 'cron执行表达式' )
2521 misfire_policy = Column (
26- String (20 , collation = 'utf8_general_ci' ),
22+ String (20 ),
2723 nullable = True ,
2824 default = '3' ,
2925 comment = '计划执行错误策略(1立即执行 2执行一次 3放弃执行)' ,
3026 )
31- concurrent = Column (
32- String (1 , collation = 'utf8_general_ci' ), nullable = True , default = '1' , comment = '是否并发执行(0允许 1禁止)'
33- )
34- status = Column (String (1 , collation = 'utf8_general_ci' ), nullable = True , default = '0' , comment = '状态(0正常 1暂停)' )
35- create_by = Column (String (64 , collation = 'utf8_general_ci' ), nullable = True , default = '' , comment = '创建者' )
27+ concurrent = Column (String (1 ), nullable = True , default = '1' , comment = '是否并发执行(0允许 1禁止)' )
28+ status = Column (String (1 ), nullable = True , default = '0' , comment = '状态(0正常 1暂停)' )
29+ create_by = Column (String (64 ), nullable = True , default = '' , comment = '创建者' )
3630 create_time = Column (DateTime , nullable = True , default = datetime .now (), comment = '创建时间' )
37- update_by = Column (String (64 , collation = 'utf8_general_ci' ), nullable = True , default = '' , comment = '更新者' )
31+ update_by = Column (String (64 ), nullable = True , default = '' , comment = '更新者' )
3832 update_time = Column (DateTime , nullable = True , default = datetime .now (), comment = '更新时间' )
39- remark = Column (String (500 , collation = 'utf8_general_ci' ), nullable = True , default = '' , comment = '备注信息' )
33+ remark = Column (String (500 ), nullable = True , default = '' , comment = '备注信息' )
4034
4135
4236class SysJobLog (Base ):
@@ -47,18 +41,14 @@ class SysJobLog(Base):
4741 __tablename__ = 'sys_job_log'
4842
4943 job_log_id = Column (Integer , primary_key = True , autoincrement = True , comment = '任务日志ID' )
50- job_name = Column (String (64 , collation = 'utf8_general_ci' ), nullable = False , comment = '任务名称' )
51- job_group = Column (String (64 , collation = 'utf8_general_ci' ), nullable = False , comment = '任务组名' )
52- job_executor = Column (
53- String (64 , collation = 'utf8_general_ci' ), nullable = False , default = 'default' , comment = '任务执行器'
54- )
55- invoke_target = Column (String (500 , collation = 'utf8_general_ci' ), nullable = False , comment = '调用目标字符串' )
56- job_args = Column (String (255 , collation = 'utf8_general_ci' ), nullable = True , comment = '位置参数' )
57- job_kwargs = Column (String (255 , collation = 'utf8_general_ci' ), nullable = True , comment = '关键字参数' )
58- job_trigger = Column (String (255 , collation = 'utf8_general_ci' ), nullable = True , comment = '任务触发器' )
59- job_message = Column (String (500 , collation = 'utf8_general_ci' ), nullable = True , default = '' , comment = '日志信息' )
60- status = Column (
61- String (1 , collation = 'utf8_general_ci' ), nullable = True , default = '0' , comment = '执行状态(0正常 1失败)'
62- )
63- exception_info = Column (String (2000 , collation = 'utf8_general_ci' ), nullable = True , default = '' , comment = '异常信息' )
44+ job_name = Column (String (64 ), nullable = False , comment = '任务名称' )
45+ job_group = Column (String (64 ), nullable = False , comment = '任务组名' )
46+ job_executor = Column (String (64 ), nullable = False , comment = '任务执行器' )
47+ invoke_target = Column (String (500 ), nullable = False , comment = '调用目标字符串' )
48+ job_args = Column (String (255 ), nullable = True , default = '' , comment = '位置参数' )
49+ job_kwargs = Column (String (255 ), nullable = True , default = '' , comment = '关键字参数' )
50+ job_trigger = Column (String (255 ), nullable = True , default = '' , comment = '任务触发器' )
51+ job_message = Column (String (500 ), nullable = True , default = '' , comment = '日志信息' )
52+ status = Column (String (1 ), nullable = True , default = '0' , comment = '执行状态(0正常 1失败)' )
53+ exception_info = Column (String (2000 ), nullable = True , default = '' , comment = '异常信息' )
6454 create_time = Column (DateTime , nullable = True , default = datetime .now (), comment = '创建时间' )
0 commit comments