public interface PipelinesHistoryService
Modifier and Type | Field and Description |
---|---|
static String |
REASON_REQUIRED_MESSAGE |
static String |
STEPS_REQUIRED_MESSAGE |
Modifier and Type | Method and Description |
---|---|
long |
addPipelineExecution(long processKey,
@NotNull PipelineExecution pipelineExecution)
Adds/persists the information of a pipeline execution.
|
void |
allowAbsentIndentifiers(@NotNull UUID datasetKey)
Mark latest failed identifier stage as finished and continue interpretation process for
datasets were identifier stage failed because of a threshold limit
|
void |
allowAbsentIndentifiers(@NotNull UUID datasetKey,
int attempt)
Mark failed identifier stage as finished and continue interpretation process for datasets were
identifier stage failed because of a threshold limit
|
long |
createPipelineProcess(@NotNull PipelineProcessParameters params)
Creates/persists a pipelines process of dataset for an attempt identifier.
|
PipelineProcess |
getPipelineProcess(@NotNull UUID datasetKey,
int attempt)
Gets the PipelineProcess identified by the dataset and attempt identifiers.
|
PipelineStep |
getPipelineStep(long stepKey)
Gets the PipelineStep of the specified keys.
|
List<PipelineStep> |
getPipelineStepsByExecutionKey(long executionKey)
Gets the PipelineSteps list of the execution key.
|
Long |
getRunningExecutionKey(@NotNull UUID datasetKey)
Gets execution key for running dataset
|
PagingResponse<PipelineProcess> |
getRunningPipelineProcess(Pageable pageable)
Returns information about all running pipelines executions
|
PagingResponse<PipelineProcess> |
history(Pageable pageable)
Lists the history of all
PipelineProcess , sorted descending from the most recent one. |
PagingResponse<PipelineProcess> |
history(@NotNull UUID datasetKey,
Pageable pageable)
Lists the history of all
PipelineProcess of a dataset, sorted descending from the most
recent one. |
void |
markAllPipelineExecutionAsFinished()
Mark all pipeline executions as finished to clean running UI
|
void |
markPipelineExecutionIfFinished(long executionKey)
Mark pipeline execution as finished when all pipelin steps are finished
|
void |
markPipelineStatusAsAborted(long executionKey)
Change status to ABORTED and set finished date if state is RUNNING, QUEUED or SUBMITTED, and
set pipeline execution as finished
|
void |
notifyAbsentIdentifiers(UUID datasetKey,
int attempt,
long executionKey,
String message)
Sends a notification to the data administrators about absent identifiers issues with the
dataset.
|
RunPipelineResponse |
runAll(@NotBlank(message="Steps parameter is required") String steps,
@NotBlank(message="Reason parameter is required") String reason,
boolean useLastSuccessful,
boolean markPreviousAttemptAsFailed,
RunAllParams runAllParams,
Set<String> interpretTypes)
Runs the last attempt for all datasets.
|
RunPipelineResponse |
runPipelineAttempt(@NotNull UUID datasetKey,
int attempt,
@NotBlank(message="Steps parameter is required") String steps,
@NotBlank(message="Reason parameter is required") String reason,
boolean markPreviousAttemptAsFailed,
Set<String> interpretTypes)
Re-run a pipeline step.
|
RunPipelineResponse |
runPipelineAttempt(@NotNull UUID datasetKey,
@NotBlank(message="Steps parameter is required") String steps,
@NotBlank(message="Reason parameter is required") String reason,
boolean useLastSuccessful,
boolean markPreviousAttemptAsFailed,
Set<String> interpretTypes)
Restart last failed pipelines step for a dataset.
|
void |
sendAbsentIndentifiersEmail(@NotNull UUID datasetKey,
int attempt,
@NotNull String message)
Deprecated.
|
long |
updatePipelineStep(@NotNull PipelineStep pipelineStep)
Update the information of a pipeline step.
|
static final String STEPS_REQUIRED_MESSAGE
static final String REASON_REQUIRED_MESSAGE
PagingResponse<PipelineProcess> history(Pageable pageable)
PipelineProcess
, sorted descending from the most recent one.pageable
- paging requestPipelineProcess
.PagingResponse<PipelineProcess> history(@NotNull @NotNull UUID datasetKey, Pageable pageable)
PipelineProcess
of a dataset, sorted descending from the most
recent one.datasetKey
- dataset identifierpageable
- paging requestPipelineProcess
.PipelineProcess getPipelineProcess(@NotNull @NotNull UUID datasetKey, int attempt)
datasetKey
- dataset identifierattempt
- crawl attempt identifierPagingResponse<PipelineProcess> getRunningPipelineProcess(Pageable pageable)
long createPipelineProcess(@NotNull @NotNull PipelineProcessParameters params)
params
- pipeline process parameters, contain dataset key and attemptPipelineProcess
created.long addPipelineExecution(long processKey, @NotNull @NotNull PipelineExecution pipelineExecution)
processKey
- sequential identifier of a pipeline processpipelineExecution
- pipeline execution dataLong getRunningExecutionKey(@NotNull @NotNull UUID datasetKey)
datasetKey
- dataset identifierlong updatePipelineStep(@NotNull @NotNull PipelineStep pipelineStep)
pipelineStep
- step to be addedPipelineStep getPipelineStep(long stepKey)
stepKey
- key of the pipeline stepPipelineStep
.List<PipelineStep> getPipelineStepsByExecutionKey(long executionKey)
executionKey
- key of the pipeline executionList
.void markAllPipelineExecutionAsFinished()
void markPipelineExecutionIfFinished(long executionKey)
executionKey
- key of the pipeline executionvoid markPipelineStatusAsAborted(long executionKey)
executionKey
- key of the pipeline executionRunPipelineResponse runAll(@NotBlank(message="Steps parameter is required") @NotBlank(message="Steps parameter is required") String steps, @NotBlank(message="Reason parameter is required") @NotBlank(message="Reason parameter is required") String reason, boolean useLastSuccessful, boolean markPreviousAttemptAsFailed, @Nullable RunAllParams runAllParams, @Nullable Set<String> interpretTypes)
steps
- steps to runreason
- reason to runuseLastSuccessful
- true if we want to run the latest successful attemptmarkPreviousAttemptAsFailed
- previous status can't be wrong, when CLI restarted during
processing a datasetrunAllParams
- parameters, contain datasets to excludeinterpretTypes
- is used for partial interpretation such as only TAXONOMY, METADATA and
etcRunPipelineResponse
.RunPipelineResponse runPipelineAttempt(@NotNull @NotNull UUID datasetKey, @NotBlank(message="Steps parameter is required") @NotBlank(message="Steps parameter is required") String steps, @NotBlank(message="Reason parameter is required") @NotBlank(message="Reason parameter is required") String reason, boolean useLastSuccessful, boolean markPreviousAttemptAsFailed, @Nullable Set<String> interpretTypes)
datasetKey
- dataset keysteps
- steps to runreason
- reason to runuseLastSuccessful
- true if we want to run the latest successful attemptmarkPreviousAttemptAsFailed
- previous status can't be wrong, when CLI restarted during
processing a datasetinterpretTypes
- is used for partial interpretation such as only TAXONOMY, METADATA and
etcRunPipelineResponse
.RunPipelineResponse runPipelineAttempt(@NotNull @NotNull UUID datasetKey, int attempt, @NotBlank(message="Steps parameter is required") @NotBlank(message="Steps parameter is required") String steps, @NotBlank(message="Reason parameter is required") @NotBlank(message="Reason parameter is required") String reason, boolean markPreviousAttemptAsFailed, @Nullable Set<String> interpretTypes)
datasetKey
- dataset keyattempt
- attempt to runsteps
- steps to runreason
- reason to runmarkPreviousAttemptAsFailed
- previous status can't be wrong, when CLI restarted during
processing a datasetinterpretTypes
- is used for partial interpretation such as only TAXONOMY, METADATA and
etcRunPipelineResponse
.@Deprecated void sendAbsentIndentifiersEmail(@NotNull @NotNull UUID datasetKey, int attempt, @NotNull @NotNull String message)
Deprecated: use #notifyAbsentIdentifiers(UUID, int, String)
instead.
datasetKey
- dataset keyattempt
- attempt to runmessage
- with failed metrics and other info*void allowAbsentIndentifiers(@NotNull @NotNull UUID datasetKey, int attempt)
datasetKey
- dataset keyattempt
- attempt to runvoid allowAbsentIndentifiers(@NotNull @NotNull UUID datasetKey)
datasetKey
- dataset keyvoid notifyAbsentIdentifiers(UUID datasetKey, int attempt, long executionKey, String message)
datasetKey
- key of the datasetattempt
- crawling attemptexecutionKey
- key of the pipelines executionmessage
- cause of the issueCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.