Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
remove async schedule
Browse files Browse the repository at this point in the history
remove async schedule
  • Loading branch information
xuchanglong committed Oct 7, 2018
1 parent 203e3b9 commit d3b4edc
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion logpusher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fiery-all</artifactId>
<groupId>com.weiboad.ragnar</groupId>
<version>0.5.7.3-beta</version>
<version>0.5.7.4-beta</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.weiboad.ragnar</groupId>
<artifactId>fiery-all</artifactId>
<version>0.5.7.3-beta</version>
<version>0.5.7.4-beta</version>
<packaging>pom</packaging>

<name>fiery</name>
Expand Down
2 changes: 1 addition & 1 deletion server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>fiery-all</artifactId>
<groupId>com.weiboad.ragnar</groupId>
<version>0.5.7.3-beta</version>
<version>0.5.7.4-beta</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

@EnableScheduling
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableAsync
public class RagnarApplication {

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public void insertDataQueue(JsonArray data) {
}
}

@Async
@Scheduled(fixedRate = 100)
public void processData() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public boolean checkAvalible() {
return true;
}

@Async
@Scheduled(fixedRate = 500)
public void processData() {
if (metaLogQueue == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ private void reloadSearch() {
}
}

@Async
@Scheduled(fixedRate = 5000)
public void refreshAllIndex() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ public boolean commitChange(String dbname) {
return true;
}

@Async
@Scheduled(fixedRate = 5000)
public void refreshIndex() {
if (diskWriterList == null || diskWriterList.size() == 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ public void dumpStaticDb() {

}

@Async
@Scheduled(fixedRate = 120000)
public void cleanUpSharder() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ private String getPercent(int a, int b) {
return df.format(a * 100.00 / b) + "%";
}

@Async
@Scheduled(fixedRate = 30 * 1000)
public void DelOutTimeSqlLog() {
if (_performMap.size() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ public boolean sendMail(String subject, String content) {
return false;
}

@Async
@Scheduled(fixedRate = 30 * 1000)
public void DelOutTimeLog() {
if (_errorLogMap.size() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ private String getPercent(int a, int b) {
return df.format(a * 100.00 / b) + "%";
}

@Async
@Scheduled(fixedRate = 30 * 1000)
public void DelOutTimeSqlLog() {
if (_sqlMap!=null && _sqlMap.size() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public HashMap<String, String> getDBFolderList() {


//remove the old db
@Async
@Scheduled(fixedRate = 5000)
public void Refresh() {

Expand Down

0 comments on commit d3b4edc

Please sign in to comment.