[Feature](job)support cancel task and fix log invalid (#27703)
- Running task can be show and fix cancel fail - When the insert task scheduling cycle is reached, if there are still tasks running, the scheduling of this task will be canceled at this time. - refactor job status changes SQL - Fix timer job window error - Support cancel task
This commit is contained in:
@ -1570,7 +1570,7 @@ public class Config extends ConfigBase {
|
||||
*/
|
||||
@ConfField(description = {"用于分发定时任务的线程数",
|
||||
"The number of threads used to dispatch timer job."})
|
||||
public static int job_dispatch_timer_job_thread_num = 5;
|
||||
public static int job_dispatch_timer_job_thread_num = 2;
|
||||
|
||||
/**
|
||||
* The number of timer jobs that can be queued.
|
||||
@ -1582,6 +1582,10 @@ public class Config extends ConfigBase {
|
||||
@ConfField(description = {"任务堆积时用于存放定时任务的队列大小", "The number of timer jobs that can be queued."})
|
||||
public static int job_dispatch_timer_job_queue_size = 1024;
|
||||
|
||||
@ConfField(description = {"finished 状态的 job 最长保存时间,超过这个时间将会被删除, 单位:小时",
|
||||
"The longest time to save the job in finished status, it will be deleted after this time. Unit: hour"})
|
||||
public static int finished_job_cleanup_threshold_time_hour = 24;
|
||||
|
||||
@ConfField(description = {"用于执行 Insert 任务的线程数,值应该大于0,否则默认为5",
|
||||
"The number of threads used to consume Insert tasks, "
|
||||
+ "the value should be greater than 0, if it is <=0, default is 5."})
|
||||
@ -1592,6 +1596,13 @@ public class Config extends ConfigBase {
|
||||
+ "the value should be greater than 0, if it is <=0, default is 5."})
|
||||
public static int job_mtmv_task_consumer_thread_num = 10;
|
||||
|
||||
/* job test config */
|
||||
/**
|
||||
* If set to true, we will allow the interval unit to be set to second, when creating a recurring job.
|
||||
*/
|
||||
@ConfField
|
||||
public static boolean enable_job_schedule_second_for_test = false;
|
||||
|
||||
/*---------------------- JOB CONFIG END------------------------*/
|
||||
/**
|
||||
* The number of async tasks that can be queued. @See TaskDisruptor
|
||||
|
||||
Reference in New Issue
Block a user