Skip to content

feat(rw-backend): periodic site reload#40

Merged
yumike merged 1 commit into
mainfrom
feat/periodic-site-reload
Apr 2, 2026
Merged

feat(rw-backend): periodic site reload#40
yumike merged 1 commit into
mainfrom
feat/periodic-site-reload

Conversation

@yumike
Copy link
Copy Markdown
Contributor

@yumike yumike commented Apr 2, 2026

Summary

  • Cached RwSite instances now periodically check S3 for upstream changes and reload only when content has changed (using @rwdocs/core 0.1.21's conditional reload())
  • New optional rw.processingInterval config (Backstage HumanDuration format, same pattern as catalog.processingInterval) — no reload if omitted
  • Shutdown hook cleans up the interval timer
rw:
  s3:
    bucket: my-docs
  processingInterval: { minutes: 5 }

Resolves the need to restart Backstage when new docs are uploaded to S3.

Related: rwdocs/rw#257

Test plan

  • Unit tests for Hub.reloadAll() — verifies per-site reload, skip-if-unchanged logging, and error resilience
  • Manual: configure processingInterval, upload new docs to S3, verify reload without restart

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yumike yumike force-pushed the feat/periodic-site-reload branch from 29efb56 to dddcdf2 Compare April 2, 2026 13:56
@yumike yumike merged commit ae45eb8 into main Apr 2, 2026
1 check passed
@yumike yumike deleted the feat/periodic-site-reload branch April 2, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant