refactor(scheduler): move manual runs to console controls

This commit is contained in:
AaronZ345
2026-07-17 16:44:30 +08:00
parent f7a0184ea2
commit 209f1f0a6f
10 changed files with 199 additions and 53 deletions

View File

@@ -34,14 +34,17 @@ Create and manage scheduled tasks with natural language:
- "Check server status every 2 hours"
- "Remind me about the meeting tomorrow at 3 PM"
- "Show all scheduled tasks"
- "Run task a1b2c3d4 now"
## Run an existing task now
## Test-run an existing task
Use `action="run"` with a task ID to queue an immediate test run. Manual
execution works for disabled tasks and does not enable, delete, or reschedule
the task. Its original `next_run_at` remains unchanged. A task cannot be run
manually while the same task is already executing on schedule.
Open the task in the authenticated Web console or Desktop app and click **Run
now**. After you confirm the delivery, CowAgent queues one immediate execution
to the task's configured channel and receiver. This user-initiated action is not
exposed to the agent's scheduler tool.
Manual execution works for disabled tasks and does not enable, delete, or
reschedule the task. Its original `next_run_at` remains unchanged. A task cannot
be run manually while the same task is already executing on schedule.
<Frame>
<img src="https://cdn.link-ai.tech/doc/20260202195402.png" width="800" />