mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-17 08:20:12 +00:00
feat: optionally run trigger messages the filters cannot read (#12226)
* fix: route trigger messages the filters cannot parse to the error handler A Kafka or websocket trigger with filters silently skipped a message that was not UTF-8 or not JSON, and Kafka committed its offset, so the message was lost without a trace. Such a message now goes to the trigger's error handler (script targets) or the workspace error handler, with the raw payload and its topic/partition/offset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: take the unfilterable-message handler as a RunnableRef after merging main Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep none_of semantics for non-object JSON, honour workspace handler mutes, throttle the no-handler alert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: state the caller contract of push_error_handler_with_parent Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: point ee-repo-ref at the kafka companion branch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: hold unparseable-message handlers of a suspended trigger, throttle them on websocket A suspended trigger now holds the handler run like its other runs, tagged with the trigger so resuming releases it. Websocket text keepalives would start a handler run per frame, so websocket caps it at one per trigger per minute; Kafka keeps one per message. A parentless handler run carries no token prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: release a held error handler run in place when resuming an edited trigger Resuming re-pushes runs held before the trigger's last edit against its target. A held error handler run would then run the target with the handler's args, so it is released in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: add run_on_filter_error to kafka and websocket triggers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: treat a truncated array as unreadable, not as a filter mismatch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to 695eddf214f6a0e6cf1249ee2c20e716788f0766 This commit updates the EE repository reference after PR #954 was merged in windmill-ee-private. Previous ee-repo-ref: c8a26463f72ed76423b14e6a1aaf6376e58f2c4c New ee-repo-ref: 695eddf214f6a0e6cf1249ee2c20e716788f0766 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
This commit is contained in:
co-authored by
Claude Opus 5.5
windmill-internal-app[bot]
Ruben Fiszel
parent
964f1af303
commit
a4ae82fd69
Generated
+10
@@ -10270,6 +10270,11 @@ properties:
|
||||
description: Logic to apply when evaluating the top-level filters. 'and' requires
|
||||
all of them to match, 'or' requires any of them to match. Nested \`any_of\`/\`all_of\`/\`none_of\`
|
||||
groups carry their own logic.
|
||||
run_on_filter_error:
|
||||
type: boolean
|
||||
description: Whether a message the filters cannot read (not UTF-8, or not JSON)
|
||||
still runs the target, as if the trigger had no filters. A preprocessor then
|
||||
finds the reason in \`event.filter_error\`. When false, such a message is skipped.
|
||||
auto_offset_reset:
|
||||
type: string
|
||||
enum:
|
||||
@@ -11004,6 +11009,11 @@ properties:
|
||||
description: Logic to apply when evaluating the top-level filters. 'and' requires
|
||||
all of them to match, 'or' requires any of them to match. Nested \`any_of\`/\`all_of\`/\`none_of\`
|
||||
groups carry their own logic.
|
||||
run_on_filter_error:
|
||||
type: boolean
|
||||
description: Whether a message the filters cannot read (not UTF-8, or not JSON)
|
||||
still runs the target, as if the trigger had no filters. A preprocessor then
|
||||
finds the reason in \`event.filter_error\`. When false, such a message is skipped.
|
||||
initial_messages:
|
||||
type: array
|
||||
items:
|
||||
|
||||
Reference in New Issue
Block a user