Skip to content

Commit f8f054f

Browse files
fix: remove unnecessary argument passed to timeout_func
1 parent 55460c6 commit f8f054f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grader_service/autograding/kube/kube_grader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def _start_pod(self) -> GraderPod:
350350
"-p",
351351
"*.ipynb",
352352
"--log-level=INFO",
353-
f"--ExecutePreprocessor.timeout={self.timeout_func(self.assignment.lecture)}",
353+
f"--ExecutePreprocessor.timeout={self.timeout_func()}",
354354
]
355355
volumes = [self.volume] + self.extra_volumes
356356
volume_mounts = [

grader_service/autograding/local_grader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def _put_grades_in_assignment_properties(self) -> str:
225225
def _get_autograde_config(self) -> Config:
226226
"""Returns the autograde config, with the timeout set for ExecutePreprocessor."""
227227
c = Config()
228-
c.ExecutePreprocessor.timeout = self.timeout_func(self.assignment.lecture)
228+
c.ExecutePreprocessor.timeout = self.timeout_func()
229229
return c
230230

231231
def _get_whitelist_patterns(self) -> set[str]:
@@ -386,7 +386,7 @@ def _run(self):
386386
self.output_path,
387387
"-p",
388388
"*.ipynb",
389-
f"--ExecutePreprocessor.timeout={self.timeout_func(self.assignment.lecture)}",
389+
f"--ExecutePreprocessor.timeout={self.timeout_func()}",
390390
]
391391
self.log.info(f"Running {command}")
392392
process = subprocess.run(

0 commit comments

Comments
 (0)