mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-28 16:06:22 +00:00
feat: let the workspace error handler skip jobs started from the UI (#12624)
* feat: let the workspace error handler skip jobs started from the UI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: address review of the ui-run error handler mute Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e810cbb93a
commit
ade2a55e86
@@ -27,6 +27,7 @@ export interface ErrorHandlerConfig {
|
||||
extra_args?: any;
|
||||
muted_on_cancel?: boolean;
|
||||
muted_on_user_path?: boolean;
|
||||
muted_on_ui_runs?: boolean;
|
||||
}
|
||||
|
||||
export interface SuccessHandlerConfig {
|
||||
@@ -254,6 +255,9 @@ export async function pushWorkspaceSettings(
|
||||
for (const key of SETTINGS_MANAGED_ONLY_WHEN_PRESENT) {
|
||||
delete (localSettings as any)[key];
|
||||
}
|
||||
// Such a server reads an error handler body carrying this key as the legacy format, which
|
||||
// clears the handler.
|
||||
delete localSettings.error_handler?.muted_on_ui_runs;
|
||||
const webhookUnreadable = unreadableSecret(localSettings.webhook);
|
||||
if (webhookUnreadable) {
|
||||
log.warn(
|
||||
|
||||
Generated
+1
-1
@@ -8651,7 +8651,7 @@ write a secret you were not given: keep the placeholder.
|
||||
| Key | Value |
|
||||
|---|---|
|
||||
| \`auto_invite\` | \`{ enabled, mode: invite \\| add, operator, instance_groups?, instance_groups_roles? }\`. The instance groups are managed only when \`instance_groups\` is stated; clearing a group removes the members it added. |
|
||||
| \`error_handler\` / \`success_handler\` | \`{ path, extra_args?, muted_on_cancel?, muted_on_user_path? }\`, \`path\` being \`script/<path>\` or \`flow/<path>\`. |
|
||||
| \`error_handler\` / \`success_handler\` | \`{ path, extra_args?, muted_on_cancel?, muted_on_user_path?, muted_on_ui_runs? }\`, \`path\` being \`script/<path>\` or \`flow/<path>\`. \`muted_on_ui_runs\` (error handler only) skips jobs started from the UI. |
|
||||
| \`error_handler_fallback_to_instance_alerts\` | Report failures to the instance critical alert channels when no error handler is set. |
|
||||
| \`webhook\` | URL POSTed a JSON event on every change to the workspace's items. |
|
||||
| \`ai_config\` | Providers, default and completion models, custom prompts, \`copilot_disabled\`. |
|
||||
|
||||
Reference in New Issue
Block a user