Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Jan 23, 2026

Rename when_failed to when_exhausted for Clarity

This PR renames the when_failed parameter to when_exhausted throughout the codebase to better reflect its purpose. The parameter controls what happens when a step's retry attempts are exhausted, not just when it fails once.

Key changes:

  • Renamed database column from when_failed to when_exhausted
  • Updated TypeScript API from retriesExhausted to whenExhausted for consistency with whenUnmet
  • Updated all related functions, tests, and documentation
  • Preserved backward compatibility in the database schema

This change improves clarity by making the parameter name more accurately describe its behavior - it only takes effect after all retry attempts are exhausted, not on the first failure.

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2026

⚠️ No Changeset found

Latest commit: b477dc6

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 changesets to release 5 packages
Name Type
@pgflow/core Minor
@pgflow/dsl Minor
pgflow Minor
@pgflow/client Minor
@pgflow/edge-worker Minor

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

Copy link
Contributor Author

jumski commented Jan 23, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link

nx-cloud bot commented Jan 23, 2026

View your CI Pipeline Execution ↗ for commit b477dc6

Command Status Duration Result
nx run edge-worker:test:integration ✅ Succeeded 4m 21s View ↗
nx run client:e2e ✅ Succeeded 1m 18s View ↗
nx run cli:e2e ✅ Succeeded 3s View ↗
nx run core:pgtap ✅ Succeeded 1m 41s View ↗
nx run edge-worker:e2e ✅ Succeeded 53s View ↗
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded 3s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 3s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 23s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-24 00:00:05 UTC

@jumski jumski force-pushed the 01-23-rename_when_failed_to_when_exhausted branch from d31e730 to 960485f Compare January 23, 2026 12:22
@jumski jumski force-pushed the 01-22-client_skipped_event_support branch from 3858291 to 192d2c0 Compare January 23, 2026 12:22
@jumski jumski changed the base branch from 01-22-client_skipped_event_support to graphite-base/602 January 23, 2026 21:46
@jumski jumski force-pushed the graphite-base/602 branch from 192d2c0 to 6bad9b5 Compare January 23, 2026 22:13
@jumski jumski force-pushed the 01-23-rename_when_failed_to_when_exhausted branch from 960485f to 44d1614 Compare January 23, 2026 22:13
@jumski jumski changed the base branch from graphite-base/602 to 01-22-client_skipped_event_support January 23, 2026 22:13
@jumski jumski force-pushed the 01-23-rename_when_failed_to_when_exhausted branch from 44d1614 to ecad8a3 Compare January 23, 2026 22:45
@jumski jumski force-pushed the 01-22-client_skipped_event_support branch from 6bad9b5 to c86955f Compare January 23, 2026 23:40
@jumski jumski force-pushed the 01-23-rename_when_failed_to_when_exhausted branch from ecad8a3 to b477dc6 Compare January 23, 2026 23:40
@github-actions
Copy link
Contributor

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-602.pgflow.pages.dev

📝 Details:

  • Branch: 01-23-rename_when_failed_to_when_exhausted
  • Commit: 7f53857cf24c28a328e15cf17ad2a82941e3c05e
  • View Logs

_Last updated: _

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.

2 participants