ITADN

`grader.timeout` in `task.yaml` is ignored by custom `TaskGrader`

#12ClosedYihongT 创建于 2026-03-22
Y
YihongTcommented
`grader.timeout` is parsed from `task.yaml`, but it is not passed into custom `TaskGrader` instances. Current loader code only passes `grader.args`: ```python grader = grader_cls(**config.grader.args) ``` So graders like this: ```python timeout = self.args.get("timeout", 300) ``` fall back to `300` even if `task.yaml` sets: ```yaml grader: timeout: 3000 ``` At the moment, the timeout only works if it is duplicated inside `grader.args`, e.g.: ```yaml grader: args: timeout: 3000 ```
关闭于 2026-03-23 0 条评论