crush icon indicating copy to clipboard operation
crush copied to clipboard

feat: add max_wait_time parameter to job_output tool

Open heimoshuiyu opened this issue 1 month ago • 2 comments

Allow job_output tool to wait for job completion with configurable timeout. The tool now supports a max_wait_time parameter that enables monitoring long-running tasks without continuous polling. When the timeout is reached, it provides helpful feedback suggesting a longer wait time.

  • [x] I have read CONTRIBUTING.md.
  • [ ] I have created a discussion that was approved by a maintainer (for new features).

This should not be considered a feature, but rather a fix. It prevents the crush from repeatedly calling job_output within a short period to check if the task is completed.

In YOLO mode, the crush sent over 20 requests in one minute to check if the compilation task was finished, and the repeated tool calls quickly exceeded the model's context limit. This is a serious issue.

Adding a maximum wait time parameter can resolve this problem.

heimoshuiyu avatar Nov 22 '25 05:11 heimoshuiyu

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

charmcli avatar Nov 22 '25 05:11 charmcli

I have read the Contributor License Agreement (CLA) and hereby sign the CLA.

heimoshuiyu avatar Nov 22 '25 05:11 heimoshuiyu