Class StopRequestStore
java.lang.Object
com.knezevic.edaf.v3.persistence.jdbc.StopRequestStore
Persists/queries cooperative stop requests for long-running runs and experiments.
This store is intentionally defensive because stop checks run inside hot optimization loops. A transient persistence failure must never abort the optimization itself. Therefore:
- SQLite busy conditions are retried with bounded backoff.
- connection-pool exhaustion is treated as transient and handled fail-open for reads.
- acknowledgement writes are best effort during shutdown/finalization paths.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintacknowledgeStopRequests(String runId, String experimentId, Instant acknowledgedAt) Acknowledges pending run/experiment stop requests consumed by this run.booleanisStopRequested(String runId, String experimentId) Returnstruewhen a pending stop request exists for run scope or experiment scope.
-
Constructor Details
-
StopRequestStore
-
-
Method Details
-
isStopRequested
-
acknowledgeStopRequests
-