feat(调度任务): 实现调度任务管理功能
新增调度任务模块,支持任务的增删改查、启停及手动执行 - 后端添加 schedule_job 模型、服务、路由及调度器工具类 - 前端新增调度任务管理页面 - 修改 flow 相关接口将 id 类型从 String 改为 i64 - 添加 tokio-cron-scheduler 依赖实现定时任务调度 - 初始化时加载已启用任务并注册到调度器
This commit is contained in:
@ -4,7 +4,7 @@ use sea_orm::entity::prelude::*;
|
||||
#[sea_orm(table_name = "flows")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key)]
|
||||
pub id: String,
|
||||
pub id: i64,
|
||||
pub name: Option<String>,
|
||||
pub yaml: Option<String>,
|
||||
pub design_json: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user