{#if edit}
{ await ScheduleService.setScheduleEnabled({ path: initialPath, workspace: $workspaceStore ?? '', requestBody: { enabled: e.detail } }) sendUserToast(`${e.detail ? 'enabled' : 'disabled'} schedule ${initialPath}`) }} />
{/if}
{#if !edit}
{/if}
Schedule
Schedules use CRON syntax. Seconds are mandatory.

Runnable

{#if !edit}

Pick a script or flow to be triggered by the schedule

{:else} Once a schedule is created, the runnable path cannot be changed. However, when renaming a script or a flow, the runnable path will automatically update itself.
{/if}
{#if runnable} {#if runnable?.schema && runnable.schema.properties && Object.keys(runnable.schema.properties).length > 0} {:else}
This {is_flow ? 'flow' : 'script'} takes no argument
{/if} {:else}
Pick a {is_flow ? 'flow' : 'script'} and fill its argument here
{/if}

Error Handler

The following args will be passed to the error handler:
  • path: The path of the script or flow that errored.
  • schedule_path: The path of the schedule.
  • error: The error details.