open-policy-agent / open-policy-agent/java-opa-sdk
Manual trigger mode for bundle refresh
Open
@MohamedFazil1406 is already working on this.
Since Jun 23, 2026.
bundles
good first issue
services
- Dominant language
- Java
- Stars
- 16
- Forks
- 24
- Avg merge
- 8h 17m
- Merged PRs (30d)
- 15
Description
BundleDownloader always polls (startPolling schedules an immediate fetch and chains jittered re-polls). OPA Go supports trigger: manual so callers can refresh on demand — useful for tests, for hosts that fetch via an external scheduler, and for environments where polling intervals don't fit the deployment model.
- Add a trigger mode to
BundleConfig(periodicdefault,manual). - In manual mode, skip the scheduler and expose a
refresh()method on the per-bundle downloader. BundlePluginstill completes the initial-activation future, but only when the first manualrefresh()succeeds (or the plugin is started with no initial fetch — decide which).- Validation: reject
pollingconfig under manual trigger. - Tests covering manual refresh and invalid combinations.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.