文档
测试

查询计划任务列表

POST
http://10.1.2.34:81/zero/Jobs/jobList

请求参数

参数名
类型
描述
必填
page
int
0
必填
page_size
int
20
必填
sid
string
0010407_1
必填

响应参数

参数名
类型
描述
必填
job_name
string
任务名称
必填
job_path
string
任务路径
必填
job_params
string
任务参数
必填
job_type
int
任务类型 1 周期 间隔(秒) 2 固定时间 Y-m-d H:i:s 3. crontab格式 22 4 * * 0
必填
status
int
任务状态 1生效中 0暂停 2关闭
必填
create_by
string
任务添加者
必填
create_at
string
任务创建时间
必填
job_start
string
任务期初开始时间
必填
job_end
string
任务最终结束时间
必填
is_remind
int
是否提醒 默认0不提醒 1提醒
必填
latest_execution_time
string
最后执行成功时间
必填
timing
执行耗时
必填

说明 / 示例

{ "Success": true, "Msg": "请求成功", "Data": { "data": [ { "job_id": 1, "job_name": "孝心养老推送通知", "job_params": "{\"workyear\":3}", "job_path": "care/info", "job_type": "1", "job_crontab": "360000", "create_by": "", "create_at": null, "status": "1" }, { "job_id": 6, "job_name": "孝心养老推送通知", "job_params": "{\"workyear\":3}", "job_path": "care/info", "job_type": "1", "job_crontab": "360000", "create_by": "", "create_at": null, "status": "1" }, { "job_id": 12, "job_name": "1", "job_params": "", "job_path": "sys/info", "job_type": "1", "job_crontab": "300", "create_by": "0010407", "create_at": "2021-08-24 15:18:35", "status": "1" }, { "job_id": 13, "job_name": "1", "job_params": "", "job_path": "sys/info", "job_type": "1", "job_crontab": "300", "create_by": "0010407", "create_at": "2021-08-24 15:20:32", "status": "1" }, { "job_id": 14, "job_name": "1", "job_params": "", "job_path": "sys/info", "job_type": "1", "job_crontab": "300", "create_by": "0010407", "create_at": "2021-08-24 15:20:39", "status": "1" }, { "job_id": 15, "job_name": "1", "job_params": "", "job_path": "sys/info", "job_type": "1", "job_crontab": "300", "create_by": "0010407", "create_at": "2021-08-24 15:20:41", "status": "1" }, { "job_id": 16, "job_name": "1", "job_params": "", "job_path": "sys/info", "job_type": "1", "job_crontab": "300", "create_by": "0010407", "create_at": "2021-08-24 15:20:47", "status": "1" } ], "total_count": 7 }, "Code": "0000" }