@cumulus/move-granules 20.2.1 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.js +1949 -153
- package/dist/lambda.zip +0 -0
- package/dist/schemas/config.json +2 -1
- package/index.js +302 -63
- package/package.json +11 -10
- package/schemas/config.json +2 -1
- package/types.js +82 -0
package/README.md
CHANGED
|
@@ -16,9 +16,10 @@ Config object fields:
|
|
|
16
16
|
| buckets | object | (required) | | Object specifying AWS S3 buckets used by this task
|
|
17
17
|
| collection | object | (required) | | The cumulus-api collection object
|
|
18
18
|
| distribution_endpoint | string | (required) | | The API distribution endpoint
|
|
19
|
-
| duplicateHandling | string | `error` | <ul><li>`error` - Throws an error on duplicates</li><li>`replace` - Replaces the existing file</li><li>`skip` - Skips the duplicate file</li><li>`version` - Adds a suffix to the existing filename to avoid a clash</li></ul> | Specifies how duplicate filenames should be handled
|
|
19
|
+
| duplicateHandling | string | `error` | <ul><li>`error` - Throws an error on duplicates</li><li>`replace` - Replaces the existing file</li><li>`skip` - Skips the duplicate file</li><li>`version` - Adds a suffix to the existing filename to avoid a clash</li></ul> | Specifies how duplicate filenames should be handled. In cases where an object collision results in duplicate evaluation, the task will check the database via API for a granuleId collision in another collection and `error` regardless of this configuration if one is found.
|
|
20
20
|
| moveStagedFiles | boolean | `true` | | Can set to `false` to skip moving files from the staging location. Defaults to `true`.
|
|
21
21
|
| s3MultipartChunksizeMb | number | | | S3 multipart upload chunk size in MB. If none is specified, the default `default_s3_multipart_chunksize_mb` is used.
|
|
22
|
+
| checkCrossCollectionCollisions | boolean | true | true/false | Default behavior configures MoveGranules to use the API to determine if a file collision is the result of a file registered to a granule in another collection, and if it is, fail (ignoring `duplicateHandling` configuration). Setting this value to false disables that check and MoveGranules will not use database checks and assume all collisions are due to same-collection collisions.
|
|
22
23
|
|
|
23
24
|
### Input
|
|
24
25
|
|