diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index 8207169016..d6bdc9b0be 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -2636,7 +2636,7 @@ pub async fn handle_queued_job( match job.kind { JobKind::Unassigned => { - return Err(Error::ExecutionError("Suspended job was not handled by the user within 30 days, job will not be executed.".to_string())); + return Err(Error::ExecutionErr("Suspended job was not handled by the user within 30 days, job will not be executed.".to_string())); } _ => {} } diff --git a/frontend/src/routes/(root)/(logged)/routes/+page.svelte b/frontend/src/routes/(root)/(logged)/routes/+page.svelte index c87d1861e1..7b1ae5b899 100644 --- a/frontend/src/routes/(root)/(logged)/routes/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/routes/+page.svelte @@ -48,6 +48,7 @@ import { getHttpRoute } from '$lib/components/triggers/http/utils' import RoutesGenerator from '$lib/components/triggers/http/RoutesGenerator.svelte' import OpenApiSpecGenerator from '$lib/components/triggers/http/OpenAPISpecGenerator.svelte' + import Badge from '$lib/components/common/badge/Badge.svelte' type TriggerW = HttpTrigger & { canWrite: boolean } @@ -314,7 +315,7 @@
No routes
{:else if items?.length}
- {#each items.slice(0, nbDisplayed) as { workspace_id, workspaced_route, enabled, path, edited_by, edited_at, script_path, route_path, is_flow, extra_perms, canWrite, marked, http_method, static_asset_config } (path)} + {#each items.slice(0, nbDisplayed) as { workspace_id, workspaced_route, enabled, path, edited_by, edited_at, script_path, route_path, is_flow, extra_perms, canWrite, marked, http_method, static_asset_config, suspended_mode } (path)} {@const href = `${is_flow ? '/flows/get' : '/scripts/get'}/${script_path}`}
- { - setTriggerEnabled(path, e.detail) - }} - /> + {#if suspended_mode} + Suspended + {:else} + { + setTriggerEnabled(path, e.detail) + }} + /> + {/if}