Skip to content

Commit

Permalink
Otter Grade Notebook Timeout Handled
Browse files Browse the repository at this point in the history
- if notebook times out GradingResult object created that indicates catastrophic failure
- Failed notebook grading still results in final_grades.csv
  • Loading branch information
sean-morris committed Aug 18, 2024
1 parent db6ee4f commit e094493
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions otter/grade/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import shutil
import tempfile
import zipfile
from otter.test_files import GradingResults

from concurrent.futures import ThreadPoolExecutor, wait
from python_on_whales import docker
Expand All @@ -23,6 +24,10 @@
LOGGER = loggers.get_logger(__name__)


class TimeoutException(Exception):
pass


def build_image(ag_zip_path: str, base_image: str, tag: str, config: AutograderConfig):
"""
Creates a grading image based on the autograder zip file and attaches a tag.
Expand Down

0 comments on commit e094493

Please sign in to comment.