+ Early stop/Break
+
If defined, at the end of the step, the predicate expression will be evaluated to decide if
the flow should stop early. Skipped flows are just a label useful to not see them in the runs
page. If stop early is run within a forloop, it will just break the for-loop and have it stop
- at that iteration instead of stopping the whole flow.
+ at that iteration instead of stopping the whole flow.
+
+
{
@@ -45,7 +46,7 @@
}}
/>
-
+
{#if flowModule.stop_after_if}
-
Sleep
+
+ Sleep
+
If defined, at the end of the step, the flow will sleep for a number of seconds before
scheduling the next job (if any, no effect if the step is the last one). Sleeping is passive and
- does not consume any resources.
+ does not consume any resources.
+
+
{
@@ -52,8 +52,7 @@
}}
/>
- Sleep for duration (seconds)
-
+ Sleep for duration
{#if flowModule.sleep && schema.properties['sleep']}
{:else}
-
+
{/if}
diff --git a/frontend/src/lib/components/flows/content/FlowModuleSuspend.svelte b/frontend/src/lib/components/flows/content/FlowModuleSuspend.svelte
index 03e94cd4dc..61801fe7b6 100644
--- a/frontend/src/lib/components/flows/content/FlowModuleSuspend.svelte
+++ b/frontend/src/lib/components/flows/content/FlowModuleSuspend.svelte
@@ -4,6 +4,7 @@
import type { FlowModule } from '$lib/gen'
import { emptySchema } from '$lib/utils'
+ import { SecondsInput } from '../../common'
export let flowModule: FlowModule
@@ -16,14 +17,15 @@
$: isSuspendEnabled = Boolean(flowModule.suspend)
-
Suspend
+
+ Suspend
+
If defined, at the end of the step, the flow will be suspended until it receives external
requests to be resumed or canceled. This is most useful to implement approval steps but can be
used flexibly for other purpose. To get the resume urls, use `wmill.getResumeUrls()` in
- Typescript, or `wmill.get_resume_urls()` in Python.
+ Typescript, or `wmill.get_resume_urls()` in Python.
+
+
+ Retries
+
If defined, upon error this step will be retried with a delay and a maximum number of attempts
as defined below. If both static and exponential delay is defined, the static delay attempts
- are tried before the exponential ones.