feat(FN-4332): complete Step 5 — add changeset for notification deferral
Fusion-Task-Id: FN-4332 Fusion-Task-Lineage: c920ac71-906b-458d-b496-1b60540b58f3
This commit is contained in:
5
.changeset/fn-4332-defer-failure-notifications.md
Normal file
5
.changeset/fn-4332-defer-failure-notifications.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@runfusion/fusion": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Defer "task failed" push notifications so they only fire when a failure persists. New global settings `failureNotificationDelayMs` (default 30000) and `failureNotificationMode` (default `sticky-only`) gate the behavior; set mode to `all` or delay to `0` to restore legacy immediate dispatch.
|
||||||
@@ -137,7 +137,7 @@ describe("NotificationDispatcher", () => {
|
|||||||
expect(shutdown).toHaveBeenCalledTimes(1);
|
expect(shutdown).toHaveBeenCalledTimes(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("keeps ntfy defaults unchanged and adds notificationProviders default", () => {
|
it("keeps ntfy defaults unchanged and adds notification provider/failure defaults", () => {
|
||||||
const event: NtfyNotificationEvent = "memory-dreams-processed";
|
const event: NtfyNotificationEvent = "memory-dreams-processed";
|
||||||
expect(event).toBe("memory-dreams-processed");
|
expect(event).toBe("memory-dreams-processed");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user