Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ public void delete(String taskId) {

/**
* Determines if a task is considered active for queue management purposes.
* <p>
* A task is active if:
* <p>A task is active if:</p>
* <ul>
* <li>Its state is not final, OR</li>
* <li>Its state is final but it was finalized within the grace period</li>
* </ul>
* <p>
* The grace period handles the race condition where events are published to Kafka
* while a task is active, but consumed on a replica node after the task is finalized.
* </p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public interface TaskStateProvider {
* </p>
* <ul>
* <li>Its state is not final, OR</li>
* <li>Its state is final but finalized within the grace period (now < finalizedAt + gracePeriod)</li>
* <li>Its state is final but finalized within the grace period (now &lt; finalizedAt + gracePeriod)</li>
* </ul>
* <p>
* This method is used to decide whether to process late-arriving events.
Expand Down