Skip to content

Add failure-only completion callbacks - #231

Closed
ianmacartney wants to merge 1 commit into
ian/workpool-test-cleanupfrom
ian/on-failure
Closed

ianmacartney wants to merge 1 commit into
ian/workpool-test-cleanupfrom
ian/on-failure

Conversation

@ianmacartney

@ianmacartney ianmacartney commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

Copying the approach from #175 but scoping it down to the simpler case of onFailure, which has no transactional complexity.

Intended uses:

  • Workflow: run steps with this, since they already record their own success and we only care about their failure
  • Batch Worker: use this to allow running the batch worker loop in a workpool, without as much overhead per loop execution
  • General usage where users only care about recovering from failure

ianmacartney commented Sep 5, 2026 •

Copy link
Copy Markdown
Member Author

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.

@pkg-pr-new

pkg-pr-new Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/get-convex/workpool/@convex-dev/workpool@231

commit: 3859830

@ianmacartney
ianmacartney force-pushed the ian/workpool-test-cleanup branch from 4ba7dd3 to b875de4 Compare September 5, 2026 07:31
@ianmacartney
ianmacartney force-pushed the ian/on-failure branch 4 times, most recently from f5dac21 to b76f791 Compare September 5, 2026 21:34
@ianmacartney
ianmacartney marked this pull request as ready for review September 9, 2026 02:41

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 8 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread README.md Resolved

Copy link
Copy Markdown
Member Author

likely replacing with #237 (but I haven't reviewed that one as carefully yet)

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