Skip to content

feature: resume scheduled task automatically#433

Merged
su8su merged 11 commits intomainfrom
feature/scheduled-task-auto-resume
Nov 26, 2025
Merged

feature: resume scheduled task automatically#433
su8su merged 11 commits intomainfrom
feature/scheduled-task-auto-resume

Conversation

@vcfgv
Copy link
Collaborator

@vcfgv vcfgv commented Nov 25, 2025

📝 Pull Request Template

1. Related Issue

Closes # (issue number)

2. Type of Change (select one)

New Feature

3. Description

  • Add stop_reason and stop_reason_detail to StrategyStatusContent and emit it on validation/runtime errors.
  • Add a TaskStore abstraction with InMemoryTaskStore and SQLiteTaskStore and refactor TaskManager/TaskService to use it (task_store.py).
  • Auto-resume running recurring tasks on server startup and schedule them via TaskExecutor.execute_task (agent_stream.py).
  • On task failure, update the persisted scheduled_task_controller conversation item: set payload task_status and add metadata.error_reason for frontend visibility.

4. Testing

  • I have tested this locally.
  • I have updated or added relevant tests.

5. Checklist

@vcfgv vcfgv marked this pull request as ready for review November 25, 2025 10:31
@su8su su8su merged commit bbed03a into main Nov 26, 2025
6 checks passed
@su8su su8su deleted the feature/scheduled-task-auto-resume branch November 26, 2025 07:05
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.

2 participants