Skip to main content

Settings

NameTypeDescription
keystringA unique key to identify this watchfolder for tracking processed source files.
watch_items_persistenceenum                          
tracked
untracked
When a watchfolder is stopped and later re-started, this parameter indicates whether Hybrik should track all files previously processed by the watchfolder.
interval_secinteger
Polling interval in seconds for the watch folder.
default: 300
recursiveboolean
Recursively watch the folder and its sub-folders.
process_existing_filesboolean
When the watchfolder process initiates, there may be contents already existing in the target location. Setting this value to true will indicate that pre-existing files should trigger new jobs.
pattern_matchingenum                          
wildcard
regex
Whether to use a simple file-system style wildcard to filter incoming files, or to use a regular expression.
default: wildcard
wildcardstring
Which expression to use for pattern matching.
default: *
regexstring
A regular expression may be used to match only certain file names for processing.

Example settings

{
"uid": "watchfolder_source",
"kind": "watchfolder",
"task": {
"tags": [
"WATCH_FOLDER"
]
},
"payload": {
"source": {
"storage_provider": "s3",
"path": "s3://my_bucket/my_watchfolder"
},
"settings": {
"key": "watch_folder",
"interval_sec": 5,
"pattern_matching": "wildcard",
"wildcard": "*",
"recursive": true,
"process_existing_files": true
}
}
}