|
|
|
@ -32,7 +32,7 @@ public class MoveUnlockTaskService extends TaskBaseService {
|
|
|
|
|
* 同时开启任务处理数量
|
|
|
|
|
*/
|
|
|
|
|
public int getCorePoolSiz() {
|
|
|
|
|
return 3;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -57,7 +57,7 @@ public class MoveUnlockTaskService extends TaskBaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Async("moveUnlockTaskPool")
|
|
|
|
|
@Scheduled(fixedRate = 1000)
|
|
|
|
|
@Scheduled(fixedRate = 30000)
|
|
|
|
|
@Override
|
|
|
|
|
public void runTask() {
|
|
|
|
|
super.runTask();
|
|
|
|
@ -82,8 +82,13 @@ public class MoveUnlockTaskService extends TaskBaseService {
|
|
|
|
|
log.info("start moveUnlockTask");
|
|
|
|
|
moveService.unlockMoveProductPublishToPicQueue();
|
|
|
|
|
moveService.unlockMoveProductPublishQueue();
|
|
|
|
|
|
|
|
|
|
// 审核状态队列
|
|
|
|
|
int heartBeatSec = 5 * 60;
|
|
|
|
|
unlockTimeoutQueue.unlockTimeoutSolidRedisQueue("material_audit_status_queue",heartBeatSec,"");
|
|
|
|
|
String tableName = "material_audit_status_queue";
|
|
|
|
|
unlockTimeoutQueue.unlockSolidRedisDeadQueue(tableName, heartBeatSec, "");
|
|
|
|
|
// unlockTimeoutQueue.unlockSolidRedisSkipQueue(tableName, "");
|
|
|
|
|
|
|
|
|
|
unlockTimeoutQueue.unlockTimeoutQueue("material_biz_queue",heartBeatSec,"");
|
|
|
|
|
log.info("end move unlock service");
|
|
|
|
|
return null;
|
|
|
|
|