获取定时任务列表

GET /open/crons

查询参数

字段名称 字段类型 默认值
searchValue string ''
page integer 1
size integer 20
filters JSON
queryString JSON {"filters":null,"sorts":null,"filterRelation":"and"}

请求头参数

{
  "Authorization": "Bearer {{token}}"
}

请求体参数

{}

响应体参数

{
  "code": 200,
  "data": [
    {
      "id": 1,
      "name": "任务名称",
      "command": "test.py",
      "schedule": "10 1 8 * * *",
      "timestamp": "Sat Feb 17 2024 15:46:21 GMT+0800 (China Standard Time)",
      "status": 1,
      "isSystem": 0,
      "pid": 524206,
      "isDisabled": 0,
      "isPinned": 0,
      "log_path": "test/2024-06-11-17-50-10-139.log",
      "labels": [],
      "last_running_time": 1,
      "last_execution_time": 1718099410,
      "sub_id": null,
      "extra_schedules": null,
      "task_before": null,
      "task_after": null,
      "createdAt": "2023-12-17T06:39:17.478Z",
      "updatedAt": "2024-06-11T09:50:10.968Z"
    }
  ]
}