Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
push-message
Project
Project
Details
Activity
Releases
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
liucheng
push-message
Commits
5e9e1033
Commit
5e9e1033
authored
Jan 24, 2022
by
renandong
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1,定时任务更新标签
parent
f047f356
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
PushMessageApplication.java
src/main/java/com/weface/PushMessageApplication.java
+3
-0
UserTagsTask.java
src/main/java/com/weface/task/UserTagsTask.java
+2
-1
No files found.
src/main/java/com/weface/PushMessageApplication.java
View file @
5e9e1033
...
@@ -4,6 +4,9 @@ import org.springframework.boot.SpringApplication;
...
@@ -4,6 +4,9 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableAsync
;
/**
* @author Administrator
*/
@SpringBootApplication
@SpringBootApplication
@EnableAsync
@EnableAsync
public
class
PushMessageApplication
{
public
class
PushMessageApplication
{
...
...
src/main/java/com/weface/task/UserTagsTask.java
View file @
5e9e1033
...
@@ -55,7 +55,8 @@ public class UserTagsTask {
...
@@ -55,7 +55,8 @@ public class UserTagsTask {
/**
/**
* 更新用户标签
* 更新用户标签
*/
*/
@Scheduled
(
cron
=
"0 0 23 * * ?"
)
// @Scheduled(cron = "0 0 23 * * ?")
@Scheduled
(
cron
=
"0 56 * * * ?"
)
public
void
updateUserTags
()
{
public
void
updateUserTags
()
{
try
{
try
{
//获取每次处理的id起始值
//获取每次处理的id起始值
...
...
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