Skip to content

feat: add scheduler#137

Merged
AlbumenJ merged 18 commits intoagentscope-ai:mainfrom
yaohuitc:main
Dec 9, 2025
Merged

feat: add scheduler#137
AlbumenJ merged 18 commits intoagentscope-ai:mainfrom
yaohuitc:main

Conversation

@yaohuitc
Copy link
Contributor

@yaohuitc yaohuitc commented Dec 4, 2025

AgentScope-Java Version

1.0.1-SNAPSHOT

Description

Background

AgentScope-Java lacks built-in scheduling capabilities for agents to run at specified times or intervals. This limits automation and periodic task execution scenarios.

Purpose

Add a new agentscope-extensions-scheduler module that provides flexible scheduling capabilities for agents with distributed execution support.

Changes Made

Core Components:

  • AgentConfig: Configuration class with factory-based agent creation for state isolation
  • ScheduleConfig: Flexible scheduling configuration (Cron, fixed-rate, fixed-delay)
  • AgentScheduler: Interface for managing scheduled agents
  • ScheduleAgentTask: Interface for scheduled task lifecycle management
  • XxlJobAgentScheduler: Implementation using XXL-Job distributed scheduler

Key Features:

  • 🏭 Factory-based design: Dynamically create fresh Agent instances for each execution
  • 🔒 State isolation: Each execution gets clean Agent state
  • 📦 Resource efficiency: Share expensive resources (Model, Toolkit) while creating fresh state
  • 🔄 Dynamic configuration: Load latest configuration at execution time
  • 📊 Distributed scheduling: Built-in XXL-Job integration

Testing:

  • 10 test files with 104 test methods
  • 100% class coverage
  • All public APIs tested with validation and state transition tests

How to Test

  1. Build the project:
    mvn clean install
  2. Run tests:
    cd agentscope-extensions/agentscope-extensions-scheduler
    mvn test

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

Change-Id: I45ce4ec2364717efc089ab4f03391c1d84fc6161
Change-Id: I376b5305ee75a1871b294c7df743e1b12d0c2274
Change-Id: If60696d4b2c73470f9bb6cddb6445d801fba2a75
Change-Id: I54842377afaf399a9e81e8f9af81c8f28afb29b6
@cla-assistant
Copy link

cla-assistant bot commented Dec 4, 2025

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link

cla-assistant bot commented Dec 4, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Change-Id: I3fac12b0fb9472bac97772ae1e2b5f166998556c
Change-Id: I1ba451c4f7d5ec3c30497f69f4ea96455b963c97
Change-Id: Iae9c595bb09175f479bea02ce6ab9204c28cb3b5
Change-Id: I5d4488c483164728a9f979264133f2a7878beed8
@yaohuitc yaohuitc requested a review from a team December 8, 2025 12:44
yaohuitc and others added 8 commits December 8, 2025 20:51
Change-Id: I04337a5644c5bf92fb352ad7694a7e5d74fcb873
Change-Id: Ie70638e3f74de81f34a60b1049f160ddb275239f
Change-Id: Iaa33bc4cfab0ef61b18220f91d4a50bbd9e4668b
Change-Id: I5785fe2c21676b08ed6a3e45ae0f988e4f8aee05
Change-Id: I5d03ba670bbfd575affdbdde219d44790bc36fbd
Updated README to reflect incubation status and removed general requirements and license section.
Removed general requirements and license sections from the README.
@AlbumenJ AlbumenJ merged commit 1649f81 into agentscope-ai:main Dec 9, 2025
3 checks passed
qingTang0305 pushed a commit to qingTang0305/agentscope-java that referenced this pull request Dec 10, 2025
JGoP-L pushed a commit to JGoP-L/agentscope-java that referenced this pull request Dec 29, 2025
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