diff --git a/pom.xml b/pom.xml index 8473abff1..ce03ea858 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ org.gbif.registry registry-parent - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT GBIF Registry Parent GBIF Registry project diff --git a/registry-cli/pom.xml b/registry-cli/pom.xml index 6d36b5c9e..a7cf9e218 100644 --- a/registry-cli/pom.xml +++ b/registry-cli/pom.xml @@ -4,7 +4,7 @@ org.gbif.registry registry-parent - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT registry-cli diff --git a/registry-directory/pom.xml b/registry-directory/pom.xml index 323ebc890..cc6520981 100644 --- a/registry-directory/pom.xml +++ b/registry-directory/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-doi/pom.xml b/registry-doi/pom.xml index 54dab160c..d0478a7e8 100644 --- a/registry-doi/pom.xml +++ b/registry-doi/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-domain/pom.xml b/registry-domain/pom.xml index 63ff40464..b00962be2 100644 --- a/registry-domain/pom.xml +++ b/registry-domain/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-events/pom.xml b/registry-events/pom.xml index 9807f8c6a..41b1b132c 100644 --- a/registry-events/pom.xml +++ b/registry-events/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-examples/pom.xml b/registry-examples/pom.xml index 629864ef8..7519af378 100644 --- a/registry-examples/pom.xml +++ b/registry-examples/pom.xml @@ -3,12 +3,12 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 registry-examples - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT jar diff --git a/registry-identity/pom.xml b/registry-identity/pom.xml index 9afb25a00..f0be79803 100644 --- a/registry-identity/pom.xml +++ b/registry-identity/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-integration-tests/pom.xml b/registry-integration-tests/pom.xml index f30eb1563..3ea980a9b 100644 --- a/registry-integration-tests/pom.xml +++ b/registry-integration-tests/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-mail/pom.xml b/registry-mail/pom.xml index 688bcbd8e..11a829135 100644 --- a/registry-mail/pom.xml +++ b/registry-mail/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-messaging/pom.xml b/registry-messaging/pom.xml index fa2cea567..fa85179e8 100644 --- a/registry-messaging/pom.xml +++ b/registry-messaging/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-oaipmh/pom.xml b/registry-oaipmh/pom.xml index 11b7b0f1e..61b24c47b 100644 --- a/registry-oaipmh/pom.xml +++ b/registry-oaipmh/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-persistence/pom.xml b/registry-persistence/pom.xml index 9137f8909..10e470466 100644 --- a/registry-persistence/pom.xml +++ b/registry-persistence/pom.xml @@ -3,7 +3,7 @@ registry-parent org.gbif.registry - 3.94.14-SNAPSHOT + 3.94.15-SNAPSHOT 4.0.0 diff --git a/registry-persistence/src/main/java/org/gbif/registry/persistence/mapper/pipelines/PipelineProcessMapper.java b/registry-persistence/src/main/java/org/gbif/registry/persistence/mapper/pipelines/PipelineProcessMapper.java index 2ae07805c..3d5b9cb17 100644 --- a/registry-persistence/src/main/java/org/gbif/registry/persistence/mapper/pipelines/PipelineProcessMapper.java +++ b/registry-persistence/src/main/java/org/gbif/registry/persistence/mapper/pipelines/PipelineProcessMapper.java @@ -175,4 +175,11 @@ long searchCount( * @param pipelineExecutionKey key of the process */ void markPipelineExecutionIfFinished(@Param("pipelineExecutionKey") long pipelineExecutionKey); + + /** + * When interpretation is allowed for failed identifiers, execution must have running status + * + * @param pipelineExecutionKey key of the process + */ + void markPipelineExecutionAsRunning(@Param("pipelineExecutionKey") long pipelineExecutionKey); } diff --git a/registry-persistence/src/main/resources/org/gbif/registry/persistence/mapper/pipelines/PipelineProcessMapper.xml b/registry-persistence/src/main/resources/org/gbif/registry/persistence/mapper/pipelines/PipelineProcessMapper.xml index 0fe15c0f5..68a53f9c0 100644 --- a/registry-persistence/src/main/resources/org/gbif/registry/persistence/mapper/pipelines/PipelineProcessMapper.xml +++ b/registry-persistence/src/main/resources/org/gbif/registry/persistence/mapper/pipelines/PipelineProcessMapper.xml @@ -341,6 +341,12 @@ WHERE finished = false; + + UPDATE pipeline_execution + SET finished = false + WHERE key = #{pipelineExecutionKey,jdbcType=BIGINT}; + +