mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
- 在任务类型、模型、接口和前端页面中新增 `start_date` 和 `end_date` 字段 - 优化任务调度逻辑,支持根据开始和结束时间设置任务的执行时间 - 前端新增间隔时间设置组件和 Cron 表达式选择器,提升用户体验 - 更新依赖包,引入 `element-plus` 和 `vue3-cron-plus-picker` 组件
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
[
|
|
{
|
|
"id": 1,
|
|
"name": "系统默认(无参)",
|
|
"func": "scheduler_test.job",
|
|
"trigger": "cron",
|
|
"args": null,
|
|
"kwargs": null,
|
|
"coalesce": false,
|
|
"max_instances": 1,
|
|
"jobstore": "default",
|
|
"executor": "default",
|
|
"trigger_args": "0 0 12 * * ?",
|
|
"start_date": null,
|
|
"end_date": null,
|
|
"status": false,
|
|
"message": null,
|
|
"description": null,
|
|
"creator_id": 1
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "系统默认(有参)",
|
|
"func": "scheduler_test.job",
|
|
"trigger": "cron",
|
|
"args": "test",
|
|
"kwargs": null,
|
|
"coalesce": false,
|
|
"max_instances": 1,
|
|
"jobstore": "default",
|
|
"executor": "default",
|
|
"trigger_args": "0 0 12 * * ?",
|
|
"start_date": null,
|
|
"end_date": null,
|
|
"status": false,
|
|
"message": null,
|
|
"description": null,
|
|
"creator_id": 1
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "系统默认(多参)",
|
|
"func": "scheduler_test.job",
|
|
"trigger": "cron",
|
|
"args": "new",
|
|
"kwargs": "{\"test\": 111}",
|
|
"coalesce": false,
|
|
"max_instances": 1,
|
|
"jobstore": "default",
|
|
"executor": "default",
|
|
"trigger_args": "0 0 12 * * ?",
|
|
"start_date": null,
|
|
"end_date": null,
|
|
"status": false,
|
|
"message": null,
|
|
"description": null,
|
|
"creator_id": 1
|
|
}
|
|
]
|