文档中心MogDBMogDB StackUqbar

文档:v1.1

支持的版本:

timeseries_views.bgw_job

Uqbar提供后台任务视图,供用户查看定期删除、压缩等后台任务的运行状况。timeseries_views这个schema下提供了bgw_job视图,供用户查看所有时序表策略。

表1 bgw_job视图属性:

字段 类型 描述
objname name 任务所属的时序表的名字
type name 任务的类型(r = retension, c = compression, s = continuous aggregation)
status name 当前任务的执行状态。(running, finished, failed, disable)
interval text 用来计算下次作业运行时间的时间表达式,可以是interval表达式,也可以是sysdate加上一个numeric值(例如:sysdate+1.0/24)。如果为空值或字符串"null"表示只执行一次,执行后Job状态STATUS变成’d’不再执行。
next_run_date timestamp 任务下次执行的时间,精确到毫秒
last_run_date timestamp 任务上次执行的时间,精确到毫秒
last_end_date timestamp 任务上次结束的时间,精确到毫秒
failure_count smallint 失败计数,任务连续失败16次后不再执行
Copyright © 2011-2024 www.enmotech.com All rights reserved.