> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jinba.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheduled Execution

> Setting task execution times and automatic execution

## What is Scheduled Execution

Scheduled execution is a feature that automatically runs tasks at specified times. You can choose between one-time execution and recurring execution.

## Execution Types

### One-time Execution

Executes the task once at the specified date and time.

```
Example: Execute on March 15, 2024 at 10:00
```

### Recurring Execution

Executes the task periodically at specified intervals.

| Recurrence Pattern | Description                                    |
| ------------------ | ---------------------------------------------- |
| **Daily**          | Execute at specified time every day            |
| **Weekly**         | Execute at specified day and time every week   |
| **Monthly**        | Execute at specified date and time every month |

## How to Set Schedule

### Setting Schedule for New Task

<Steps>
  <Step title="Open Task Creation Screen">
    Click "New" on the Task Management screen.
  </Step>

  <Step title="Enter Task Basic Information">
    Enter agent, task name, and initial input.
  </Step>

  <Step title="Select Execution Type">
    Select "One-time" or "Recurring".
  </Step>

  <Step title="Set Execution Time">
    Specify date and time. For recurring, also set the interval.
  </Step>

  <Step title="Click 'Set Schedule'">
    Save settings and enable the schedule.
  </Step>
</Steps>

### Setting Schedule from Draft

<Steps>
  <Step title="Open Draft Task">
    Select the task from the draft list.
  </Step>

  <Step title="Set Execution Time">
    Set the execution type and time.
  </Step>

  <Step title="Click 'Set Schedule'">
    The task transitions to scheduled state.
  </Step>
</Steps>

## Recurring Settings Details

### Daily Execution

<Steps>
  <Step title="Select 'Daily'">
    Select "Daily" for the recurrence pattern.
  </Step>

  <Step title="Set Execution Time">
    Set what time to execute each day.
  </Step>
</Steps>

### Weekly Execution

<Steps>
  <Step title="Select 'Weekly'">
    Select "Weekly" for the recurrence pattern.
  </Step>

  <Step title="Select Days">
    Check the days to execute. Multiple selections are possible.
  </Step>

  <Step title="Set Execution Time">
    Set the execution time.
  </Step>
</Steps>

### Monthly Execution

<Steps>
  <Step title="Select 'Monthly'">
    Select "Monthly" for the recurrence pattern.
  </Step>

  <Step title="Select Date">
    Set which day of the month to execute.
  </Step>

  <Step title="Set Execution Time">
    Set the execution time.
  </Step>
</Steps>

<Note>
  If you want to set month-end, specify 31. For months without 31 days, it will execute on the last day of the month.
</Note>

## Automatic Execution

Scheduled tasks are automatically executed at the specified time.

### Execution Flow

1. When the specified time arrives, the system starts the task
2. Initial input is sent to the agent
3. The agent processes the request
4. Execution results are saved

### Checking Execution Results

<Steps>
  <Step title="Open Task Management Screen">
    Select "Tasks" from the side menu.
  </Step>

  <Step title="Check Completed Tasks">
    View completed tasks in the "Completed" tab.
  </Step>

  <Step title="View Details">
    Click a task to view execution result details.
  </Step>
</Steps>

## Changing Schedule

You can change the execution time of scheduled tasks.

<Steps>
  <Step title="Select Scheduled Task">
    Click the settings menu (⋮) of the task you want to change.
  </Step>

  <Step title="Select 'Edit'">
    Select "Edit" from the menu.
  </Step>

  <Step title="Change Schedule">
    Set the new execution time.
  </Step>

  <Step title="Save">
    Click "Set Schedule" to save.
  </Step>
</Steps>

## Canceling Schedule

You can return a scheduled task to draft status.

<Steps>
  <Step title="Select Scheduled Task">
    Click the settings menu (⋮) of the task you want to cancel.
  </Step>

  <Step title="Select 'Cancel Schedule'">
    Select "Cancel Schedule" from the menu.
  </Step>

  <Step title="Return to Draft">
    The task returns to draft state.
  </Step>
</Steps>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Task doesn't execute">
    Please check the following:

    * Is the schedule correctly set?
    * Is the agent being used valid?
    * Is the connector connection valid?
  </Accordion>

  <Accordion title="Execution results in error">
    * Check the agent settings
    * Verify the initial input content is appropriate
    * Check connector permissions
  </Accordion>
</AccordionGroup>
