1
This commit is contained in:
@@ -114,11 +114,11 @@ class ScheduledJobs {
|
||||
|
||||
// 执行自动投递任务
|
||||
const autoDeliverJob = node_schedule.scheduleJob(config.schedules.autoDeliver, () => {
|
||||
this.autoDeliverTask();
|
||||
this.recommendedSearchJobListTask();
|
||||
});
|
||||
|
||||
// 立即执行一次自动投递任务
|
||||
this.autoDeliverTask();
|
||||
this.recommendedSearchJobListTask();
|
||||
|
||||
this.jobs.push(autoDeliverJob);
|
||||
console.log('[定时任务] 已启动自动投递任务');
|
||||
@@ -452,9 +452,9 @@ class ScheduledJobs {
|
||||
}
|
||||
|
||||
/**
|
||||
* 自动投递任务
|
||||
* 推荐职位列表任务
|
||||
*/
|
||||
async autoDeliverTask() {
|
||||
async recommendedSearchJobListTask() {
|
||||
const now = new Date();
|
||||
console.log(`[自动投递] ${now.toLocaleString()} 开始执行自动投递任务`);
|
||||
|
||||
@@ -644,6 +644,25 @@ class ScheduledJobs {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 搜索职位列表任务
|
||||
*/
|
||||
async searchJobListTask() {
|
||||
const now = new Date();
|
||||
console.log(`[搜索职位列表] ${now.toLocaleString()} 开始执行搜索职位列表任务`);
|
||||
|
||||
try {
|
||||
|
||||
const models = db.models;
|
||||
const { pla_account, op } = models;
|
||||
|
||||
} catch (error) {
|
||||
console.error('[搜索职位列表] 执行失败:', error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 自动沟通任务
|
||||
*/
|
||||
@@ -773,6 +792,8 @@ class ScheduledJobs {
|
||||
console.error('[自动沟通] 执行失败:', error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
module.exports = ScheduledJobs;
|
||||
|
||||
Reference in New Issue
Block a user