- Cache
-
- If defined, the result of the step will be cached for the number of seconds defined such that if
- this step were to be re-triggered with the same input it would retrieve and return its cached
- value instead of recomputing it.
-
-
-{#if flowModule.value.type != 'rawscript'}
-
The cache settings need to be set in the referenced script/flow settings directly. Cache for
- hub scripts is not available yet.
-{:else}
- {
- if (isCacheEnabled && flowModule.cache_ttl != undefined) {
- flowModule.cache_ttl = undefined
- } else {
- flowModule.cache_ttl = 600
- }
- }}
- options={{
- right: 'Cache the results for each possible inputs'
- }}
- />
-
- How long to keep cache valid
+
+
+
+ If defined, the result of the step will be cached for the number of seconds defined such that
+ if this step were to be re-triggered with the same input it would retrieve and return its
+ cached value instead of recomputing it.
+
+
- {#if flowModule.cache_ttl}
-
- {:else}
-
- {/if}
-
The cache settings need to be set in the referenced script/flow settings directly. Cache for
+ hub scripts is not available yet.
+ {:else}
+ {
+ if (isCacheEnabled && flowModule.cache_ttl != undefined) {
+ flowModule.cache_ttl = undefined
+ } else {
+ flowModule.cache_ttl = 600
+ }
+ }}
+ options={{
+ right: 'Cache the results for each possible inputs'
+ }}
+ />
+
+ {/if}
+
diff --git a/frontend/src/lib/components/flows/content/FlowModuleEarlyStop.svelte b/frontend/src/lib/components/flows/content/FlowModuleEarlyStop.svelte
index 0b259c7a28..ae859591c8 100644
--- a/frontend/src/lib/components/flows/content/FlowModuleEarlyStop.svelte
+++ b/frontend/src/lib/components/flows/content/FlowModuleEarlyStop.svelte
@@ -7,6 +7,7 @@
import type { FlowEditorContext } from '../types'
import { getContext } from 'svelte'
import { NEVER_TESTED_THIS_FAR } from '../models'
+ import Section from '$lib/components/Section.svelte'
const { flowStateStore } = getContext('FlowEditorContext')
@@ -15,72 +16,75 @@
let editor: SimpleEditor | undefined = undefined
$: isStopAfterIfEnabled = Boolean(flowModule.stop_after_if)
-
$: result = $flowStateStore[flowModule.id]?.previewResult ?? NEVER_TESTED_THIS_FAR
-
- 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.
-
-
- {
- if (isStopAfterIfEnabled && flowModule.stop_after_if) {
- flowModule.stop_after_if = undefined
- } else {
- flowModule.stop_after_if = {
- expr: 'result == undefined',
- skip_if_stopped: false
- }
- }
- }}
- options={{
- right: 'Early stop or Break if condition met'
- }}
- />
+
+
+
+ If defined, at the end of the step, the predicate expression will be evaluated to decide if
+ the flow should stop early.
+
+
-
+
diff --git a/frontend/src/lib/components/flows/content/FlowModuleSleep.svelte b/frontend/src/lib/components/flows/content/FlowModuleSleep.svelte
index 828f0bd87e..84faa288b4 100644
--- a/frontend/src/lib/components/flows/content/FlowModuleSleep.svelte
+++ b/frontend/src/lib/components/flows/content/FlowModuleSleep.svelte
@@ -9,6 +9,8 @@
import PropPickerWrapper from '../propPicker/PropPickerWrapper.svelte'
import type { FlowEditorContext } from '../types'
import { SecondsInput } from '../../common'
+ import Section from '$lib/components/Section.svelte'
+ import Label from '$lib/components/Label.svelte'
export let flowModule: FlowModule
export let previousModuleId: string | undefined
@@ -27,53 +29,54 @@
$: isSleepEnabled = Boolean(flowModule.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).
-
-
- {
- if (isSleepEnabled && flowModule.sleep != undefined) {
- flowModule.sleep = undefined
- } else {
- flowModule.sleep = {
- type: 'static',
- value: 0
+
+
+
+ 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).
+
+
+
+ {
+ if (isSleepEnabled && flowModule.sleep != undefined) {
+ flowModule.sleep = undefined
+ } else {
+ flowModule.sleep = {
+ type: 'static',
+ value: 0
+ }
}
- }
- }}
- options={{
- right: 'Sleep after module successful execution'
- }}
-/>
-
- Sleep for duration
- {#if flowModule.sleep && schema.properties['sleep']}
-
+ }}
+ options={{
+ right: 'Sleep after module successful execution'
+ }}
+ />
+
+
diff --git a/frontend/src/lib/components/flows/content/FlowModuleSuspend.svelte b/frontend/src/lib/components/flows/content/FlowModuleSuspend.svelte
index e8b93c032e..4a44ef8b0c 100644
--- a/frontend/src/lib/components/flows/content/FlowModuleSuspend.svelte
+++ b/frontend/src/lib/components/flows/content/FlowModuleSuspend.svelte
@@ -14,6 +14,8 @@
import { SecondsInput } from '../../common'
import PropPickerWrapper from '../propPicker/PropPickerWrapper.svelte'
import type { FlowEditorContext } from '../types'
+ import Section from '$lib/components/Section.svelte'
+ import Label from '$lib/components/Label.svelte'
const { selectedId, flowStateStore } = getContext('FlowEditorContext')
const result = $flowStateStore[$selectedId]?.previewResult ?? {}
@@ -47,165 +49,166 @@
}
-
- Suspend/Approval
-
- 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.
-
-
+
+
+
+ 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.
+
+
- {
- if (isSuspendEnabled && flowModule.suspend != undefined) {
- flowModule.suspend = undefined
- } else {
- flowModule.suspend = {
- required_events: 1,
- timeout: 1800
+ {
+ if (isSuspendEnabled && flowModule.suspend != undefined) {
+ flowModule.suspend = undefined
+ } else {
+ flowModule.suspend = {
+ required_events: 1,
+ timeout: 1800
+ }
}
- }
- }}
- options={{
- right: 'Suspend flow execution until events/approvals received'
- }}
-/>
+ }}
+ options={{
+ right: 'Suspend flow execution until events/approvals received'
+ }}
+ />
-
- Timeout
-
- If defined, the custom timeout will be used instead of the instance timeout for the step. The
- step's timeout cannot be greater than the instance timeout.
-
-
+
+
+
+ If defined, the custom timeout will be used instead of the instance timeout for the step. The
+ step's timeout cannot be greater than the instance timeout.
+
+
- {
- if (istimeoutEnabled && flowModule.timeout != undefined) {
- flowModule.timeout = undefined
- } else {
- flowModule.timeout = 300
- }
- }}
- options={{
- right: 'Add a custom timeout for this step'
- }}
-/>
-