mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
4.7 doc update (#1068)
* fix: plugin update * feat: get current time plugin * fix: ts * perf: select app ux * fix: ts * perf: max w * move code * perf: inform tip * fix: inform * doc * fix: tool handle * perf: tmp file store * doc * fix: message file selector * feat: doc * perf: switch trigger * doc * fix: openapi import * rount the number * parse openapi schema * fix empty line after variables (#64) * doc image * image size * doc * doc * catch error --------- Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
This commit is contained in:
@@ -11,6 +11,8 @@ import { mongoSessionRun } from '@fastgpt/service/common/mongo/sessionRun';
|
||||
import { initGlobal } from './common/system';
|
||||
import { startMongoWatch } from './common/system/volumnMongoWatch';
|
||||
import { startTrainingQueue } from './core/dataset/training/utils';
|
||||
import { clearDirFiles } from '@fastgpt/service/common/file/utils';
|
||||
import { tmpFileDirPath } from '@fastgpt/service/common/file/constants';
|
||||
|
||||
/**
|
||||
* connect MongoDB and init data
|
||||
@@ -32,6 +34,9 @@ export function connectToDatabase(): Promise<void> {
|
||||
|
||||
// start queue
|
||||
startTrainingQueue(true);
|
||||
|
||||
// clear tmp files
|
||||
clearDirFiles(tmpFileDirPath);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user