Add scheduled EventBridge rule for nightly KB sync #4
Labels
No labels
app
bug
ci
compliance
dependencies
docker
docs
documentation
duplicate
enhancement
good first issue
help wanted
infra
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: adam/seahaven-slack-bot#4
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently the Knowledge Base must be manually synced after new documents are uploaded to S3. Add an EventBridge scheduled rule to trigger an ingestion job automatically on a nightly basis.
Implementation:
lib/constructs/knowledge-base.ts(or a new construct) on a cron schedule (e.g. nightly at 2am UTC)StartIngestionJobon the KB data sourcebedrock:StartIngestionJobon the data source ARNKnowledge Base IDs (for reference):
LSDCNHTH6OY0GK8GHTKKTwo new nightly KB syncs have been deployed and tested, partially addressing this issue:
50d5c3c— Merge PR #6: purchase-orders DynamoDB → KB sync (9,279 POs)1dc275d— Merge PR #7: WorkOrders + Comments DynamoDB → KB sync (1,942 WOs)Both run daily at 02:00 UTC alongside the existing Notion sync. Schedule frequency will be increased once we move toward production cadence.