@@ -93,6 +99,7 @@ export default class Batch extends Vue {
processingConfig: null,
completedDir: null,
retentionPeriod: null,
+ rejectDuplicates: null,
};
private tabIndex: number = 0;
@@ -161,6 +168,9 @@ export default class Batch extends Vue {
if (this.form.retentionPeriod && this.tabIndex === 1) {
request.submitRequestBody.retentionPeriod = this.form.retentionPeriod;
}
+ if (this.form.rejectDuplicates) {
+ request.submitRequestBody.rejectDuplicates = this.form.rejectDuplicates;
+ }
return EnduroBatchClient.batchSubmit(request).then((response: api.BatchSubmitResponseBody) => {
this.loadStatus();
}).catch((response: Response) => {
diff --git a/website/content/en/docs/user-manual/configuration.md b/website/content/en/docs/user-manual/configuration.md
index 785f9041..91df7b44 100644
--- a/website/content/en/docs/user-manual/configuration.md
+++ b/website/content/en/docs/user-manual/configuration.md
@@ -112,6 +112,9 @@ ignore = '(^\.gitkeep)|(^*\.mft)$'
# Omit the top-level directory of the transfer after extraction.
stripTopLevelDir = true
+
+# Reject transfers with duplicate transfer names.
+rejectDuplicates = false
```
Namely, it monitors the `watched-dir` directory. It uses the inotify API for
@@ -131,6 +134,14 @@ Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
E.g.: `"10m"`
+#### `rejectDuplicates` (Boolean)
+
+When enabled, the workflow will execute a check on the internal database for
+successfully completed transfers with the same transfer name as the currently
+processing package. If it finds a duplicate the transfer will fail.
+
+E.g.: `false`
+
#### `completedDir` (String)
The path where transfers are moved into when processing has completed
@@ -194,6 +205,9 @@ retentionPeriod = "10s"
# Omit the top-level directory of the transfer after extraction.
stripTopLevelDir = true
+
+# Reject transfers with duplicate transfer names.
+rejectDuplicates = false
```
MinIO will deliver new events to us via a Redis instance at
@@ -215,6 +229,14 @@ Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
E.g.: `"10m"`
+#### `rejectDuplicates` (Boolean)
+
+When enabled, the workflow will execute a check on the internal database for
+succesfully completed transfers with the same transfer name as the currently
+processing package. If it finds a duplicate the transfer will fail.
+
+E.g.: `false`
+
#### `pipeline` (String | Array(String))
The name of the pipeline to be used during processing. If undefined, one will