Skip to content

AI Scheduled Task Agent

Overview

The AI Scheduled Task Agent assists users in designing, configuring, validating, and managing scheduled tasks in applications, covering trigger rules, execution scripts, failure strategies, concurrency control, and security constraints, ensuring tasks have completeness and executability after creation or update.

Core Capabilities

1. Scheduled Task Configuration

  • Trigger Rule Design: Supports multiple trigger methods including cron expressions, fixed times, and periodic execution
  • Script Binding: Associate scheduled tasks with execution scripts
  • Timezone Configuration: Set the timezone for task execution

2. Task Validation

  • Cron Expression Validation: Verify the syntax validity of cron expressions
  • Script Integrity Check: Ensure referenced scripts and functions actually exist
  • Concurrency Control Validation: Verify the reasonability of concurrency and idempotency strategy configurations

3. Execution Management

  • Immediate Trigger: Manually trigger a scheduled task once for testing
  • Query Task Details: View detailed configuration of scheduled tasks
  • Task List: Get all scheduled tasks in the application

Using the AI Scheduled Task Agent

In the [Application Designer]'s [AI] module, click [Scheduled Task Agent] to switch to the scheduled task agent conversation.

Application Cases

1. Create Scheduled Reminder Tasks

  • Use Case: Automatically send overdue task reminders to responsible persons every morning at 9:00
  • Example: Input "Help me create a scheduled task: automatically send overdue task reminders to responsible persons every morning at 9:00"

2. Configure Cron Expressions

  • Use Case: Need to precisely control task execution time using cron expressions
  • Example: Input "Help me configure a scheduled task with a cron expression and validate whether the expression is correct"

3. View Existing Scheduled Tasks

  • Use Case: Understand the scheduled tasks configured in the current application
  • Example: Input "Summarize the existing scheduled tasks and their execution purposes in the current application"

Important Notes

  • Scheduled tasks can only be executed via scripts
  • Script files and functions must be created first before being referenced in scheduled tasks
  • It is strictly prohibited to fill in scriptId or scriptFunc before the script is created
  • After creating or updating a task, the agent will automatically perform a complete validation
  • Avoid designing configurations that may cause infinite execution or task storms