yifan-c commented on code in PR #192:
URL: https://github.com/apache/cassandra-sidecar/pull/192#discussion_r1956514545
##########
server/src/main/java/org/apache/cassandra/sidecar/tasks/PeriodicTaskExecutor.java:
##########
@@ -329,15 +343,18 @@ public String toString()
}
}
- @VisibleForTesting
- Map<PeriodicTaskKey, Long> timerIds()
+ enum Result
{
- return timerIds;
+ /**
+ * Tells the run completion handler whether task is rescheduled.
+ * If it is rescheduled, the delay is adjusted to the initial delay of
the task
+ */
+ RESCHEDULED
Review Comment:
yep. `ScheduleDecision` makes better sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]