Skip to content

Commit

Permalink
Merge pull request #43 from Staketab/dev
Browse files Browse the repository at this point in the history
update app properties
  • Loading branch information
MrFoxogen authored Apr 26, 2024
2 parents 2928004 + cec2af5 commit 8d6c58e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.staketab.minanames.entity;

import lombok.Getter;

@Getter
public enum ZkCloudWorkerDomainStatus {
ACCEPTED("accepted");

private final String name;

ZkCloudWorkerDomainStatus(String name) {
this.name = name;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ public void sendCreateTask() {
zkCloudWorkerService.sendCreateTask();
}

// @Scheduled(fixedDelayString = "${scheduled.zk-cloud-worker.check-zk-blocks}")
// public void checkBlocksFromZkCloudWorker() {
// zkCloudWorkerService.checkBlocksFromZkCloudWorker();
// }

}
7 changes: 5 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ zk-cloud-worker:
url: ${ZK_CLOUD_WORKER_URL}
auth: ${ZK_CLOUD_WORKER_AUTH}
jwt-token: ${ZK_CLOUD_WORKER_JWT_TOKEN}
ipfs-url: ${ZK_CLOUD_WORKER_IPFS_URL}
ipfs-token: ${ZK_CLOUD_WORKER_IPFS_TOKEN}

spring:
task:
Expand Down Expand Up @@ -79,5 +81,6 @@ scheduled:
remove-reserve-upload-mills: 60000 # runs 60 seconds after the previous job
remove-cart-reserve-upload-mills: 60000 # runs 60 seconds after the previous job
zk-cloud-worker:
enable: true
send-task-cron: 0 */2 * * * *
enabled: true
send-task-cron: 0 */2 * * * *
check-zk-blocks: 120000

0 comments on commit 8d6c58e

Please sign in to comment.