Skip to content

feat: add hourly schedule mode for scheduled tasks#376

Closed
mutjan wants to merge 1 commit intonetease-youdao:mainfrom
mutjan:feature/hourly-scheduled-task
Closed

feat: add hourly schedule mode for scheduled tasks#376
mutjan wants to merge 1 commit intonetease-youdao:mainfrom
mutjan:feature/hourly-scheduled-task

Conversation

@mutjan
Copy link
Copy Markdown

@mutjan mutjan commented Mar 11, 2026

Summary

This PR adds support for hourly scheduled tasks, allowing users to schedule tasks that run at a specific minute every hour.

Changes

  • TaskForm.tsx: Added 'hourly' schedule mode with time picker for selecting the minute within each hour
  • TaskDetail.tsx: Updated to display hourly schedules with proper formatting (e.g., "每小时: 30 分")
  • i18n.ts: Added translations for hourly mode in both Chinese and English

How it works

Users can now select "每小时" (Hourly) as a schedule type and choose which minute of each hour the task should execute. For example, selecting 00:30 will run the task at :30 minutes past every hour.

Testing

  • Created and tested hourly scheduled tasks locally
  • Verified UI displays correctly in both Chinese and English
  • Confirmed cron expression generation (e.g., 30 * * * *)

This code was written by LobsterAI, an AI assistant developed by NetEase Youdao.

- Add 'hourly' schedule mode to TaskForm component
- Support selecting minute within each hour for execution
- Update TaskDetail to display hourly schedule with proper formatting
- Add i18n translations for hourly mode (zh-CN and en)

This allows users to schedule tasks that run at a specific minute every hour
(e.g., at :30 minutes past every hour).

Co-Authored-By: LobsterAI <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant