Skip to main content
Version: v1.7.0

Scheduled Tasks

Use scheduled tasks to automate chat completions and agent workflows. You can schedule prompts to run once at a specific time, on a fixed interval, or on a daily, weekly, or monthly recurring schedule.

In the Enterprise h2oGPTe navigation menu, click Scheduled Tasks.

note

Viewing scheduled tasks requires the h2ogpte/display/scheduled_tasks permission. Creating, editing, and deleting tasks require the h2ogpte/scheduled_task/create, h2ogpte/scheduled_task/edit, and h2ogpte/scheduled_task/delete permissions respectively. Administrators with the h2ogpte/scheduled_task/manage permission can manage all users' tasks. To configure role permissions, see Roles and Permissions.

Tasks tab​

Scheduled Tasks page showing the Tasks tab with summary cards, filter controls, and empty state

The Tasks tab displays summary cards and a searchable task table. Data refreshes automatically in the background while the page is open.

Summary cards show the following metrics: Total Tasks, Active Tasks, Paused Tasks, Recurring Tasks, and Total Runs.

Each row in the task table includes the following columns: Task Name, Status, Task Type, Schedule Type, Schedule Summary, Next Run, Runs, and an actions menu.

To filter tasks, enter a name in the Name filter or select a status (Active, Paused, Completed, or Expired) from the Status dropdown.

Actions menu​

The actions available in each task row's menu depend on the task status.

For active and paused tasks:

  • Run Now: Triggers the task immediately. The task remains paused after a manual run and continues to skip its automatic schedule until you resume it. Disabled while the task is currently running.
  • Edit Task Settings: Opens the Edit Scheduled Task dialog with pre-filled values.
  • Pause / Resume: Temporarily stops or resumes scheduling of the task.
  • Delete: Permanently deletes the task and all its execution history.

For completed and expired tasks:

  • View task details: Opens the task detail panel.
  • Delete: Permanently deletes the task and all its execution history.

Task details​

Click a task name to open its detail panel. The detail panel shows the following information:

  • Description, Status, Task Type, Schedule Type, and Schedule Expression
  • Next Run time (shown only for active tasks) and Last Run time
  • Scheduled executions (shown as count / max when a maximum is set) and Created At date
  • Email Notification address (if configured)
  • Task Configuration JSON (if available)

Below the task details, a Task Runs table lists each run for that task with the following columns: Run Status, Trigger, Started, Duration, Result Summary, and Task Error. Click a Task Error value to view full error details.

Task Details

Create a scheduled task​

To create a scheduled task:

  1. On the Scheduled Tasks page, click Create Task.

  2. On the Task Details tab, configure the following fields:

    Create Scheduled Task dialog showing the Task Details tab with fields for name, description, prompt, and task type

    FieldRequiredDescription
    Task NameYesName for the scheduled task.
    DescriptionNoDescription of the task.
    CollectionNoCollection whose settings apply to the task. When selected, the Chat, Agent Settings, Expert Settings, and Cost Controls tabs are hidden and settings come from the collection.
    Prompt / MessageYesPrompt or message to send on each execution.
  3. On the Schedule Settings tab, configure the schedule:

    Schedule Settings tab showing Repeat, Run At, Expires At, and Max Executions fields

    FieldRequiredDescription
    RepeatYesNo repeat (one-time), Every... (interval), Daily, Weekly, or Monthly.
    Run AtYes (one-time)Date and time to run the task.
    Every / UnitYes (interval)Interval value and unit (Minutes or Hours).
    Day of WeekYes (weekly)Monday through Sunday.
    Day of MonthYes (monthly)1 through 31.
    TimeYes (recurring)Local time of day to run.
    TimezoneYes (recurring)Timezone for the scheduled time.
    Expires AtNoDate after which the task stops running.
    Max scheduled executionsNoMax number of runs. Leave empty for unlimited.
    note

    Email notifications use Gmail settings configured in Preferences. To enable notifications, toggle Email Notification on in the Schedule Settings tab.

  4. (Optional) Configure the remaining tabs:

    TabDescription
    ChatConfigures LLM parameters and includes a collection selector.
    Agent SettingsConfigures agent behavior.
    Expert SettingsProvides advanced model options.
    Cost ControlsSets cost limits.

    For details, see Customize a Chat session.

  5. Click Create.

Schedule a prompt from chat​

To schedule a prompt from a chat session:

  1. In the chat input area, click the Schedule this prompt (clock) icon.

    Schedule this prompt icon

  2. The Create Scheduled Task dialog opens with the Prompt / Message field pre-filled from the chat input. Enter a Task Name.

    Schedule this prompt dialog showing task name, schedule fields, and email notification toggle

  3. On the Schedule Settings tab, configure the schedule. From the Repeat dropdown, select how often the task should run. You can select from No repeat (one-time), Every… (interval), Daily, Weekly, or Monthly. If you choose the Every… option, use the newly revealed Every and Unit fields to set a custom interval (for example, every 5 minutes).

    Repeat 'Every' Option

  4. In Run At, enter the date and time for the task. Optionally, set an Expires At date or a Max Executions limit.

  5. (Optional) To receive email notifications when the task completes, enable the Email Notification toggle.

    note

    Email notifications use Gmail settings configured in Preferences. Configure your Gmail address and app password there before enabling this option.

  6. Click Create.

The task appears on the Scheduled Tasks page with the prompt and chat settings from your current session.

Activity tab​

The Activity tab shows execution history across all your scheduled tasks. Each row includes the following columns:

ColumnDescription
Task NameName of the scheduled task.
StatusCurrent execution status. Possible values: Completed, Failed, Running, or Pending.
TriggerHow the run was initiated: Scheduled run or Manual run.
StartedDate and time when the execution started.
DurationHow long the execution took to complete.
Result SummaryBrief summary of the execution result.
Task ErrorError message if the execution failed. Click to view full details.

To filter executions, select a status from the Status dropdown.

Activity Tab

Admin tab​

The Admin tab is visible only to administrators and shows all scheduled tasks across all users.

Admin summary cards display the following metrics:

MetricDescription
Total TasksTotal number of scheduled tasks across all users.
Active TasksNumber of currently active tasks.
Unique Task UsersNumber of distinct users who have scheduled tasks.
Failed TodayNumber of task executions that failed today.
Running NowNumber of task executions currently in progress.

The administrator task table includes the following columns:

ColumnDescription
Task NameName of the scheduled task.
Task OwnerUser who created the task.
Task TypeChat Completion or Agent Task.
Schedule TypeHow the task is scheduled (one-time, interval, daily, weekly, or monthly).
StatusCurrent task status: Active, Paused, Completed, or Expired.
Scheduled executionsTotal number of executions for the task.
Next RunDate and time of the next scheduled run. Only shown for active tasks; displays — for paused, completed, or expired tasks.

Unlike the Tasks tab, the administrator table doesn't include a Schedule Summary column. Administrators can pause, resume, or delete any user's tasks, but can't trigger or edit another user's task settings.

To filter tasks by owner, select a user from the User dropdown.

Admin tab showing summary cards, user filter, and task table with owner column


Feedback