[Chore](Job)Add the configuration of the maximum number of persistence tasks for the job (#28411)

This commit is contained in:
Calvin Kirs
2023-12-15 11:14:06 +08:00
committed by GitHub
parent 8661b5ec21
commit c4242ab69e
3 changed files with 25 additions and 18 deletions

View File

@ -1585,7 +1585,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 = {"一个 Job 的 task 最大的持久化数量,超过这个限制将会丢弃旧的 task 记录, 如果值 < 1, 将不会持久化。",
"Maximum number of persistence allowed per task in a job,exceeding which old tasks will be discarded,"
+ "If the value is less than 1, it will not be persisted." })
public static int max_persistence_task_count = 100;
@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;