File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/main/java/com/staketab/minanames Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ public class ZkCloudWorkerScheduler {
15
15
16
16
private final ZkCloudWorkerService zkCloudWorkerService ;
17
17
18
- @ Scheduled (cron = "${scheduled.zk-cloud-worker.send-task-cron}" )
19
- public void sendCreateTask () {
20
- zkCloudWorkerService .sendCreateTask ();
21
- }
18
+ // @Scheduled(cron = "${scheduled.zk-cloud-worker.send-task-cron}")
19
+ // public void sendCreateTask() {
20
+ // zkCloudWorkerService.sendCreateTask();
21
+ // }
22
22
23
23
@ Scheduled (fixedDelayString = "${scheduled.zk-cloud-worker.check-zk-blocks}" )
24
24
public void checkBlocksFromZkCloudWorker () {
Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ public void sendTxs(List<PayableTransactionEntity> appliedTxs) {
94
94
List <DomainEntity > entities = domainEntities .stream ()
95
95
.peek (domainEntity -> domainEntity .setIsSendToCloudWorker (true )).toList ();
96
96
97
+ if (!zkCloudWorkerTransactions .isEmpty ()) {
98
+ sendCreateTask ();
99
+ }
100
+
97
101
ZkCloudWorkerDataDTO zkCloudWorkerDataDTO = mapToZkCloudWorkerDataDTO (zkCloudWorkerTransactions , SEND_TRANSACTIONS );
98
102
ZkCloudWorkerRequestDTO zkCloudWorkerRequestDTO = mapToZkCloudWorkerRequestDTO (zkCloudWorkerDataDTO , SEND_TRANSACTIONS );
99
103
ResponseEntity <String > stringResponseEntity = zkCloudWorkerClient .sendToZkCloudWorker (zkCloudWorkerRequestDTO );
You can’t perform that action at this time.
0 commit comments