mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: seperate task and schedule to enhance performance (#440)
This commit is contained in:
1 parent
101fcaa1b5
commit
175609259a
19 files changed
+250
-144
No files matched your search
@@ -551,11 +551,18 @@ export interface Task {
|
||||
_id: ObjectID;
|
||||
type: string;
|
||||
subType?: string;
|
||||
executeAfter: Date;
|
||||
priority: number;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface Schedule {
|
||||
_id: ObjectID;
|
||||
type: string;
|
||||
subType?: string;
|
||||
executeAfter: Date;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface FileNode {
|
||||
/** File Path In S3 */
|
||||
_id: string;
|
||||
@@ -618,6 +625,7 @@ declare module './service/db' {
|
||||
'oplog': OplogDoc;
|
||||
'event': EventDoc;
|
||||
'opcount': OpCountDoc;
|
||||
'schedule': Schedule;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -637,6 +645,7 @@ export interface Model {
|
||||
solution: typeof import('./model/solution').default,
|
||||
system: typeof import('./model/system'),
|
||||
task: typeof import('./model/task').default,
|
||||
schedule: typeof import('./model/schedule').default;
|
||||
oplog: typeof import('./model/oplog'),
|
||||
token: typeof import('./model/token').default,
|
||||
training: typeof import('./model/training'),
|
||||
|
||||
Reference in new issue
Block a user