Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
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
Administrator
browser-backend
Commits
f5da3b05
Commit
f5da3b05
authored
Jul 01, 2020
by
xuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时修改定时任务频率
parent
5d973302
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
pom.xml
pom.xml
+6
-6
PromotionTask.java
.../com/edgec/browserbackend/browser/task/PromotionTask.java
+2
-2
No files found.
pom.xml
View file @
f5da3b05
...
...
@@ -103,12 +103,12 @@
<artifactId>
alipay-sdk-java
</artifactId>
<version>
3.7.110.ALL
</version>
</dependency>
<dependency
>
<groupId>
de.flapdoodle.embed
</groupId
>
<artifactId>
de.flapdoodle.embed.mongo
</artifactId
>
<version>
1.50.3
</version
>
<scope>
test
</scope
>
</dependency
>
<!-- <dependency>--
>
<!-- <groupId>de.flapdoodle.embed</groupId>--
>
<!-- <artifactId>de.flapdoodle.embed.mongo</artifactId>--
>
<!-- <version>1.50.3</version>--
>
<!-- <scope>test</scope>--
>
<!-- </dependency>--
>
<dependency>
<groupId>
com.jayway.jsonpath
</groupId>
<artifactId>
json-path
</artifactId>
...
...
src/main/java/com/edgec/browserbackend/browser/task/PromotionTask.java
View file @
f5da3b05
...
...
@@ -30,7 +30,7 @@ public class PromotionTask {
//临时修改为每2分钟执行一次
@SchedulerLock
(
name
=
"countGift"
,
lockAtLeastForString
=
"PT1H"
,
lockAtMostForString
=
"PT2H"
)
//@Scheduled(cron = "0 0 1 1 * ?")
@Scheduled
(
cron
=
"0 2 * * * ?"
)
@Scheduled
(
cron
=
"0
0/
2 * * * ?"
)
public
void
countGift
()
{
log
.
info
(
"Start scheduled task:Scheduled.countGift..."
);
List
<
Account
>
accounts
=
accountRepository
.
findByParentIsNull
();
...
...
@@ -83,7 +83,7 @@ public class PromotionTask {
//临时修改为每1分钟执行一次
@SchedulerLock
(
name
=
"countCommission"
,
lockAtLeastForString
=
"PT1H"
,
lockAtMostForString
=
"PT2H"
)
//@Scheduled(cron = "0 0 1 * * ?")
@Scheduled
(
cron
=
"0 1 * * * ?"
)
@Scheduled
(
cron
=
"0
0/
1 * * * ?"
)
public
void
countCommission
()
{
log
.
info
(
"Start scheduled task:Scheduled.countCommission..."
);
List
<
Account
>
accounts
=
accountRepository
.
findByParentIsNull
();
...
...
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