{#if flowModule.value.type === 'rawscript' || flowModule.value.type === 'script'}
(selected = 'suspend')} on:toggleRetry={() => (selected = 'retries')} on:toggleStopAfterIf={() => (selected = 'early-stop')} on:fork={async () => { const [module, state] = await fork(flowModule) flowModule = module $flowStateStore[module.id] = state }} on:createScriptFromInlineScript={async () => { const [module, state] = await createScriptFromInlineScript( flowModule, $selectedId, $flowStateStore[flowModule.id].schema ) flowModule = module $flowStateStore[module.id] = state }} /> {#if flowModule.value.type === 'rawscript'}
{/if}
{#if flowModule.value.type === 'rawscript'}
reload(flowModule)} class="h-full"> { selected = 'test' await reload(flowModule) modulePreview?.runTestWithStepArgs() }} formatAction={() => reload(flowModule)} />
{:else if flowModule.value.type === 'script'} {/if}
Move the focus outside of the text editor to recompute the inputs or press Ctrl/Cmd + S Step Input Test this step Retries {#if !$selectedId.includes('failure')} Early Stop Sleep/Suspend Same Worker/Shared dir {/if}
{#if selected === 'inputs'}
{:else if selected === 'test'} {:else if selected === 'retries'} {:else if selected === 'early-stop'} {:else if selected === 'suspend'}
{:else if selected === 'same_worker'}
If same worker is set, all steps will be run on the same worker and will share the folder `/shared` to pass data between each other.
{/if}
{:else} Incorrect flow module type {/if}