Platform Tool for Scheduler: Allow Goose to Manage Its Own Schedule#2944
Merged
Kvadratni merged 7 commits intoblock:mainfrom Jun 19, 2025
Merged
Platform Tool for Scheduler: Allow Goose to Manage Its Own Schedule#2944Kvadratni merged 7 commits intoblock:mainfrom
Kvadratni merged 7 commits intoblock:mainfrom
Conversation
Kvadratni
approved these changes
Jun 16, 2025
Kvadratni
approved these changes
Jun 18, 2025
wendytang
reviewed
Jun 18, 2025
wendytang
reviewed
Jun 18, 2025
wendytang
approved these changes
Jun 18, 2025
Collaborator
|
can you explain why agents need scheduler access, not quite following what this is about. |
Collaborator
Author
Enabling goose to run recipes in isolated agents on demand opens up some interesting use cases around agents effectively managing agents. And recipes are going to be a major part of the UX. So having goose manage its own library of them seems right. |
lifeizhou-ap
added a commit
that referenced
this pull request
Jun 20, 2025
* main: Blog: Add video to container use blog (#3008) Use official logo in Goose web (#3012) fix shims for extensions on windows (#3009) fix powershell executions (#3006) Docs linux desktop (#3007) Platform Tool for Scheduler: Allow Goose to Manage Its Own Schedule (#2944) docs: container use blog and guide (#2962) Fix: Workflow syntax (#3002) Added just lint-ui for linting front end code (#2997) fix typo in secret name (#2994) feat(ui): add chain-of-thought panel above assistant messages (#2899) feat(cli): Add `--quiet /-q` flag to goose run (#2939) Feat: Recipe Library (#2946) Docs: Goose on Windows Installation (#2990) Fixes : Workflow error on issue comment (#2958) Add a setting for the quit confirmation dialog (#2901) Update bundle-desktop-windows.yml (#2988) feat: optional fast edit models (#2580) feat: Add lead-worker model selection and real-time model display in GUI (#2964)
laanak08
added a commit
that referenced
this pull request
Jun 24, 2025
# By Max Novich (4) and others # Via Alice Hau * ahau/tool-strategy: updated computercontroller and developer descriptions add additional strats to test Blog: Add video to container use blog (#3008) Use official logo in Goose web (#3012) fix shims for extensions on windows (#3009) fix powershell executions (#3006) Docs linux desktop (#3007) Platform Tool for Scheduler: Allow Goose to Manage Its Own Schedule (#2944) docs: container use blog and guide (#2962) Fix: Workflow syntax (#3002) Added just lint-ui for linting front end code (#2997) fix typo in secret name (#2994) feat(ui): add chain-of-thought panel above assistant messages (#2899) feat(cli): Add `--quiet /-q` flag to goose run (#2939) Feat: Recipe Library (#2946) Docs: Goose on Windows Installation (#2990) Fixes : Workflow error on issue comment (#2958) Add a setting for the quit confirmation dialog (#2901) Update bundle-desktop-windows.yml (#2988) # Conflicts: # Cargo.lock
btdeviant
pushed a commit
to btdeviant/goose
that referenced
this pull request
Jun 25, 2025
s-soroosh
pushed a commit
to s-soroosh/goose
that referenced
this pull request
Jul 18, 2025
…lock#2944) Signed-off-by: Soroosh <soroosh.sarabadani@gmail.com>
cbruyndoncx
pushed a commit
to cbruyndoncx/goose
that referenced
this pull request
Jul 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates to the Goose server and agent modules, focusing on enhancing scheduler functionality, improving error handling, and adding test utilities. The key changes include providing scheduler access to agents, refining error responses for scheduling operations, introducing a new tool for managing schedules, and adding test support utilities.
Scheduler Enhancements:
crates/goose-server/src/commands/agent.rs: Added functionality to provide scheduler access to agents by cloning the scheduler instance and setting it inagent_ref.Error Handling Improvements:
crates/goose-server/src/routes/schedule.rs: Enhanced error handling increate_scheduleby mapping specific scheduler errors (e.g.,JobNotFound,CronParseError,RecipeLoadError,JobIdExists) to corresponding HTTP status codes.crates/goose-server/src/routes/schedule.rs: Updated API responses to include status codes for400(Bad Request) and409(Conflict) for invalid cron expressions and duplicate job IDs, respectively.New Tool for Schedule Management:
crates/goose/src/agents/platform_tools.rs: Introduced themanage_schedule_toolfunction and its associated constantPLATFORM_MANAGE_SCHEDULE_TOOL_NAME. This tool enables managing scheduled jobs with actions like create, delete, pause, and inspect. [1] [2]Test Utilities:
crates/goose/src/scheduler_test_support.rs: Added a test-only utility for managing a default provider (TEST_PROVIDER) during scheduler job executions in tests. Includesset_test_providerandget_test_providerfunctions for setup and retrieval.crates/goose/src/agents/mod.rs: Added test modulesprivate_testsandtest_supportfor improved test coverage and organization.