Skip to main content

YingClaw Scheduled Task Guide: Making Your Digital Employee Work on a Schedule

YingClaw's scheduled task feature is what upgrades your digital employee from "on-call assistant" to "proactive worker." Instead of manually typing commands every time, you tell it once—"do this at 9 AM every day, do that every Friday at 6 PM"—and it handles the rest on time, every time.

This guide is written for non-technical users. It walks you from the basic concepts of scheduled tasks to advanced configurations, so you can master YingClaw's scheduling capabilities in about 30 minutes.

What Are Scheduled Tasks and Why You Need Them

A scheduled task (also called a Cron job) lets your computer execute a specific operation at a predetermined time. In YingClaw, scheduled tasks enable your digital employee to:

  • Scheduled pushes: Send today's to-do list every morning at 9 AM
  • Periodic collection: Check competitor websites for updates every hour
  • Cyclic reporting: Generate a weekly report and send it to the team group every Friday
  • Scheduled inspections: Check server status and log results every night

Without scheduled tasks, you'd need to manually ask YingClaw to check things every single day. With them, you configure once and YingClaw works automatically—like a tireless full-time employee.

The Core Concept: Cron Expressions

YingClaw uses standard Cron expressions to define time rules. A Cron expression looks like a string of digits and symbols, but it's simpler than it appears.

A standard Cron expression has 5 fields:

┬ ┬ ┬ ┬ ┬
│ │ │ │ └── Day of week (0-7, both 0 and 7 mean Sunday)
│ │ │ └──── Month (1-12)
│ │ └────── Day of month (1-31)
│ └──────── Hour (0-23)
└────────── Minute (0-59)

Quick Reference: Common Cron Expressions

FrequencyCron ExpressionDescription
Every minute* * * * *Run every minute (for testing)
Every hour0 * * * *Run at the top of every hour
Daily at 9 AM0 9 * * *Every day at 9:00
Three times daily0 9,14,18 * * *At 9:00, 14:00, 18:00
Mondays at 9 AM0 9 * * 1Every Monday at 9:00
Weekdays at 9 AM0 9 * * 1-5Monday through Friday at 9:00
1st of month at 8 AM0 8 1 * *First day of every month at 8:00
Every 30 minutes*/30 * * * *Every half hour
Every 2 hours0 */2 * * *At the top of every 2nd hour

Step 1: Start with a Basic Scheduled Task

Creating a scheduled task in YingClaw is remarkably simple. Just describe what you need in plain language:

Example: Create a daily morning briefing

Log into YingClaw and type in the digital employee conversation window:

Create a scheduled task that runs at 9 AM every day:
1. Check today's weather and schedule
2. Review unread emails
3. Compile everything into a good-morning message
4. Send it to my DingTalk

YingClaw automatically parses your request, configures the Cron expression 0 9 * * *, and creates the corresponding skill task. No code required.

Step 2: Configure Periodic Data Collection

One of the most practical scheduled task scenarios is periodic data collection. For example, you want to check whether a competitor's website has been updated:

Create a scheduled task that runs every 2 hours:
1. Open competitor A's homepage
2. Take a screenshot and compare with the last version
3. If there are changes, extract them and send to the WeChat group
4. Log the check result

YingClaw's browser automation visits the page like a real user, captures screenshots, extracts content, compares differences, and pushes results to the channel you specify.

Step 3: Generate and Push Reports on Schedule

For scenarios that require regular data aggregation, scheduled tasks dramatically reduce manual work:

Create a scheduled task that runs at 18:00 on weekdays:
1. Aggregate the team's ticket completion for the day
2. Calculate progress percentages for each project
3. Generate a Markdown daily report
4. Send it to the DingTalk team group, @everyone

YingClaw's multi-agent orchestration splits this task into parallel sub-tasks—data collection, statistics, document generation, and message delivery—running efficiently at the same time.

Step 4: Multi-Task Orchestration with Conditions

Advanced usage involves coordinating multiple scheduled tasks. For example, a "check + alert" pipeline:

Task A (every 10 minutes):

Check server response status. If it times out 3 times in a row, write an alert flag.

Task B (every hour):

Read the alert flag. If set, send an alert notification and generate a problem report.

This multi-task pattern turns scheduled tasks from simple "run at this time" triggers into a full automation workflow system.

Step 5: Maintenance and Management

YingClaw provides a management interface for all your scheduled tasks:

View All Tasks

See every configured task, including frequency, last run time, next run time, and execution status.

Pause and Resume

Need a temporary adjustment? Pause a task without losing its configuration, then resume when ready.

Change Frequency

Too frequent or too sparse? Just modify the Cron expression instead of recreating the task. For example, change 0 9 * * * (daily at 9 AM) to 0 9,15 * * * (daily at 9 AM and 3 PM).

Review Execution Logs

Every run is logged in detail—results, duration, and output—making troubleshooting straightforward.

Delete Unneeded Tasks

When a task is no longer needed, delete it to free up your digital employee's capacity for other work.

Step 6: Enterprise Best Practices

Stagger Your Schedules

If multiple tasks trigger at the same time, offset them by 5-10 minutes to avoid resource contention:

  • Daily report: 0 9 * * * (9:00)
  • Data backup: 10 9 * * * (9:10)
  • System inspection: 20 9 * * * (9:20)

Set Sensible Frequencies

Faster isn't always better. Match frequency to how often data actually changes:

  • Competitor monitoring: every 2-4 hours
  • Server health checks: every 5-10 minutes
  • Daily/weekly reports: daily or weekly

Use Notifications for Confirmation

For critical tasks, enable push notifications so the responsible person knows the result immediately and can intervene when something goes wrong.

Test Before Going Live

Before deploying a critical task, test it a few times with * * * * * (every minute) to confirm the output looks right, then switch to the production frequency.

FAQ

Do scheduled tasks consume a lot of resources?

Outside of execution windows, YingClaw's scheduled tasks consume virtually no resources. During execution, they only use what's needed to finish the job. For most enterprise scenarios, one digital employee can manage 20-30 scheduled tasks without impacting daily use.

What happens if a task fails?

YingClaw logs the failure reason and automatically retries on the next scheduled run. After 3 consecutive failures, it sends you a notification alert. Check the execution logs for details, fix the issue, and re-trigger.

Can I set time zones?

YingClaw uses the server's local timezone by default. For cross-timezone needs (for example, a headquarters abroad), simply specify the timezone in your task description.

Summary

Scheduled tasks are the key capability that moves YingClaw from "passive answering" to "proactive work." With this 6-step guide, you can master Cron expression configuration, periodic data collection, scheduled report generation, and multi-task orchestration. YingDomain Intelligence's design philosophy is to make AI a true member of the team—not waiting for your commands, but getting the work done on schedule. Scheduled tasks are exactly how that philosophy becomes reality.