open-policy-agent / open-policy-agent/java-opa-sdk

Manual trigger mode for bundle refresh

Open
#65 1 comment 0 reactions 1 assignee View on GitHub

@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 (periodic default, manual).
  • In manual mode, skip the scheduler and expose a refresh() method on the per-bundle downloader.
  • BundlePlugin still completes the initial-activation future, but only when the first manual refresh() succeeds (or the plugin is started with no initial fetch — decide which).
  • Validation: reject polling config under manual trigger.
  • Tests covering manual refresh and invalid combinations.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.