Commit e08c016
feat: Add configurable lease interval for crawler source (opensearch-project#6432)
This change adds support for configurable lease interval in the crawler
source plugin, allowing users to customize the leader scheduler's lease
interval instead of using a hardcoded value.
Changes:
- Added getLeaseInterval() method to CrawlerSourceConfig interface with
default value of 1 minute
- Modified CrawlerSourcePlugin to use the configurable lease interval
from the source configuration
Signed-off-by: Alexander Christensen <alchrisk@amazon.com>
Signed-off-by: Simon ELBAZ <elbazsimon9@gmail.com>1 parent 48813a8 commit e08c016
2 files changed
Lines changed: 12 additions & 1 deletion
File tree
- data-prepper-plugins/saas-source-plugins/source-crawler/src/main/java/org/opensearch/dataprepper/plugins/source/source_crawler/base
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
0 commit comments