Skip to content

Commit

Permalink
Merge pull request #238 from dwusiq/dev
Browse files Browse the repository at this point in the history
fix cron
  • Loading branch information
yanyanho authored Apr 22, 2024
2 parents 7d6cf25 + f8f85f3 commit 69ed3f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public BountyService(BountyRepository bountyRepository,



@Scheduled(cron = "${jobs.bounty.corn:0 */1 * * *}")
@Scheduled(cron = "${jobs.bounty.corn:0 0 * * * *}")
@ConditionalOnProperty(name = "scheduler.enabled", havingValue = "true", matchIfMissing = true)
public void updateBountyData() {
log.info("schedule task begin --------------------- ");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
defi:
corn: ${CRON_DEFI:0 30 * * * ?}
bounty:
corn: ${CRON_BOUNTY:0 */1 * * *}
corn: ${CRON_BOUNTY:0 0 * * * *}
bot:
telegram:
groupList:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
defi:
corn: ${CRON_DEFI:0 10 * * * ?}
bounty:
corn: ${CRON_BOUNTY:0 */1 * * *}
corn: ${CRON_BOUNTY:0 0 * * * *}
oauth:
registrations:
github:
Expand Down

0 comments on commit 69ed3f4

Please sign in to comment.