[PR #13] [MERGED] feat: support error handling #28

Closed
opened 2026-02-16 03:15:59 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/workflows-ts/pull/13
Author: @himself65
Created: 4/3/2025
Status: Merged
Merged: 4/3/2025
Merged by: @himself65

Base: mainHead: error-handling


📝 Commits (1)

  • 179c350 feat: support error handling

📊 Changes

5 files changed (+131 additions, -4 deletions)

View changed files

📝 README.md (+35 -0)
📝 packages/fluere/src/core/internal/context.ts (+1 -0)
📝 packages/fluere/src/core/internal/executor.ts (+32 -3)
📝 packages/fluere/src/core/workflow.ts (+1 -1)
packages/fluere/tests/abort-signal.spec.ts (+62 -0)

📄 Description

You can use signal in getContext to handle error

workflow.handle([convertEvent], () => {
  const { signal } = getContext();

  signal.onabort = () => {
    console.error("error in convert event:", abort.reason);
  };
});

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/workflows-ts/pull/13 **Author:** [@himself65](https://github.com/himself65) **Created:** 4/3/2025 **Status:** ✅ Merged **Merged:** 4/3/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `error-handling` --- ### 📝 Commits (1) - [`179c350`](https://github.com/run-llama/workflows-ts/commit/179c35095cc4a619e4f2bc99b6fbce8fb162202e) feat: support error handling ### 📊 Changes **5 files changed** (+131 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+35 -0) 📝 `packages/fluere/src/core/internal/context.ts` (+1 -0) 📝 `packages/fluere/src/core/internal/executor.ts` (+32 -3) 📝 `packages/fluere/src/core/workflow.ts` (+1 -1) ➕ `packages/fluere/tests/abort-signal.spec.ts` (+62 -0) </details> ### 📄 Description You can use `signal` in `getContext` to handle error ```ts workflow.handle([convertEvent], () => { const { signal } = getContext(); signal.onabort = () => { console.error("error in convert event:", abort.reason); }; }); ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 03:15:59 -05:00
yindo closed this issue 2026-02-16 03:15:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/workflows-ts#28