Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mobdna-k8s
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenggui.li
mobdna-k8s
Commits
540f2ee3
Commit
540f2ee3
authored
May 31, 2022
by
hanzepeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
试一试k8s
parent
3ff5012f
Pipeline
#4949
canceled with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
9 deletions
+5
-9
SyncChannelTask.java
...in/java/com/reyun/saas/mob/user/task/SyncChannelTask.java
+1
-2
UniversalPwdTask.java
...n/java/com/reyun/saas/mob/user/task/UniversalPwdTask.java
+1
-2
WarningConfigTask.java
.../java/com/reyun/saas/mob/user/task/WarningConfigTask.java
+1
-2
WorkOrderTask.java
...main/java/com/reyun/saas/mob/user/task/WorkOrderTask.java
+2
-3
No files found.
backend/src/main/java/com/reyun/saas/mob/user/task/SyncChannelTask.java
View file @
540f2ee3
...
...
@@ -11,7 +11,6 @@ import com.reyun.saas.report.realtimecommon.dao.ChannelInfoMapper;
import
com.reyun.saas.report.realtimecommon.domain.ChannelInfo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
import
tk.mybatis.mapper.entity.Example
;
...
...
@@ -54,7 +53,7 @@ public class SyncChannelTask {
* 从实时数据库中渠道数据 同步数据到web的数据库中
*/
@Async
@Scheduled
(
cron
=
"0 0/30 * * * ?"
)
//
@Scheduled(cron = "0 0/30 * * * ?")
// @Scheduled(cron = "0 * * * * ?")
public
void
syncChannel
()
{
//分布式锁
...
...
backend/src/main/java/com/reyun/saas/mob/user/task/UniversalPwdTask.java
View file @
540f2ee3
...
...
@@ -9,7 +9,6 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
...
...
@@ -31,7 +30,7 @@ public class UniversalPwdTask {
private
RedisUtils
redisUtils
;
@Async
@Scheduled
(
cron
=
"0 0 8 * * ? "
)
//
@Scheduled(cron = "0 0 8 * * ? ")
public
void
genUniversalPwd
(){
if
(!
"pro"
.
equals
(
env
)){
//线上生效
return
;
...
...
backend/src/main/java/com/reyun/saas/mob/user/task/WarningConfigTask.java
View file @
540f2ee3
...
...
@@ -9,7 +9,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.stereotype.Component
;
import
tk.mybatis.mapper.entity.Example
;
...
...
@@ -36,7 +35,7 @@ public class WarningConfigTask {
private
WarningConfigMapper
warningConfigMapper
;
@Async
@Scheduled
(
cron
=
"0 0 * * * ? "
)
//整点
//
@Scheduled(cron = "0 0 * * * ? ")//整点
public
void
checkWarningReport
(){
Boolean
lock
=
stringRedisTemplate
.
opsForValue
().
setIfAbsent
(
"checkWarningReport"
,
"lock"
,
10
,
TimeUnit
.
SECONDS
);
if
(!
lock
)
{
...
...
backend/src/main/java/com/reyun/saas/mob/user/task/WorkOrderTask.java
View file @
540f2ee3
...
...
@@ -7,7 +7,6 @@ import com.reyun.saas.mob.user.domain.WorkOrderExport;
import
com.reyun.saas.mob.user.thread.workorder.WorkOrderThread
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
tk.mybatis.mapper.entity.Example
;
...
...
@@ -42,7 +41,7 @@ public class WorkOrderTask {
@Async
// @Scheduled(cron = "0 0/5 * * * ?")
@Scheduled
(
cron
=
"0 * * * * ?"
)
//
@Scheduled(cron = "0 * * * * ?")
public
void
scanWorkOrderExport
()
{
//分布式锁
if
(!
redisUtils
.
tryLock
(
"scanWorkOrderExport"
,
10
))
{
...
...
@@ -90,7 +89,7 @@ public class WorkOrderTask {
* 将工期的工单删除
*/
@Async
@Scheduled
(
cron
=
"0 0 * * * ?"
)
//
@Scheduled(cron = "0 0 * * * ?")
public
void
expireWorkOrderDispose
()
{
//分布式锁
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment