mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-12 09:32:49 +00:00
优化
This commit is contained in:
parent
f03cbef492
commit
b8b40b4bf2
@ -227,7 +227,6 @@ export class TaskLocalService extends BaseService {
|
|||||||
*/
|
*/
|
||||||
async initTask() {
|
async initTask() {
|
||||||
try {
|
try {
|
||||||
await this.utils.sleep(3000);
|
|
||||||
this.logger.info('init local task....');
|
this.logger.info('init local task....');
|
||||||
const runningTasks = await this.taskInfoEntity.findBy({ status: 1 });
|
const runningTasks = await this.taskInfoEntity.findBy({ status: 1 });
|
||||||
if (!_.isEmpty(runningTasks)) {
|
if (!_.isEmpty(runningTasks)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user