Class RunRepository
java.lang.Object
ch.so.agi.gretl.control.server.persistence.RunRepository
-
Constructor Summary
ConstructorsConstructorDescriptionRunRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, JsonSupport jsonSupport) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddeleteOlderThan(Instant threshold) findRecent(int limit) findRecentForJob(String jobId, int limit) booleanhasActiveRun(String jobId) voidvoidrequestCancel(String runId) voidsetLogPath(String runId, String logPath) booleanskipQueued(String runId, String message, Instant now) voidupdateQueuedMessage(String runId, String message) voidupdateStatus(String runId, ch.so.agi.gretl.control.api.RunStatus status, Integer exitCode, String message, Instant now)
-
Constructor Details
-
RunRepository
public RunRepository(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, JsonSupport jsonSupport)
-
-
Method Details
-
insert
-
find
-
findRecent
-
findRecentForJob
-
findActive
-
hasActiveRun
-
findQueued
-
claim
-
updateStatus
-
requestCancel
-
updateQueuedMessage
-
skipQueued
-
setLogPath
-
deleteOlderThan
-