Skip to content

feat(operations): add always-execute option and latest cache reuse#925

Draft
graham-chainlink wants to merge 1 commit intomainfrom
ggoh/NOJIRA/operations-always-execute-cache
Draft

feat(operations): add always-execute option and latest cache reuse#925
graham-chainlink wants to merge 1 commit intomainfrom
ggoh/NOJIRA/operations-always-execute-cache

Conversation

@graham-chainlink
Copy link
Copy Markdown
Collaborator

What changed

  • Added WithAlwaysExecute execute option to force operation execution and bypass previous successful report short-circuiting.
  • Updated cached report lookup to prefer the most recent matching successful report.
  • Added regression tests for forced re-execution and most-recent successful report reuse.
  • Updated operations package docs usage examples to reflect the new option and current sequence behavior.

Why

  • Some execution flows need deterministic re-runs rather than returning prior cached results.
  • When cache reuse is enabled, returning the newest successful report provides expected and up-to-date behavior.

Introduce WithAlwaysExecute for operations to bypass previous successful report reuse when explicitly requested. Also ensure cached report lookup prefers the most recent successful match and add regression coverage plus docs updates.
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 13, 2026

⚠️ No Changeset found

Latest commit: 2b36801

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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