@@ -93,6 +93,7 @@ def __init__(
9393 info : str | None = None ,
9494 success : bool | None = None ,
9595 text : list [str ] | None = None ,
96+ admin_text : str | None = None ,
9697 files : dict [str , File ] | None = None ,
9798 managers : dict [str , Manager ] | None = None ,
9899 executables : dict [str , Executable ] | None = None ,
@@ -121,6 +122,8 @@ def __init__(
121122 to be presented to the user. The first item is a string,
122123 potentially with %-escaping; the following items are the
123124 values to be %-formatted into the first.
125+ admin_text: description of the outcome of the job,
126+ to be shown to admins.
124127 files: files submitted by the user.
125128 managers: managers provided by the admins.
126129 executables: executables created in the compilation.
@@ -155,6 +158,7 @@ def __init__(
155158
156159 self .success = success
157160 self .text = text
161+ self .admin_text = admin_text
158162
159163 self .files = files
160164 self .managers = managers
@@ -178,6 +182,7 @@ def export_to_dict(self) -> dict:
178182 'info' : self .info ,
179183 'success' : self .success ,
180184 'text' : self .text ,
185+ 'admin_text' : self .admin_text ,
181186 'files' : dict ((k , v .digest )
182187 for k , v in self .files .items ()),
183188 'managers' : dict ((k , v .digest )
@@ -316,6 +321,7 @@ def __init__(
316321 compilation_success : bool | None = None ,
317322 executables : dict [str , Executable ] | None = None ,
318323 text : list [str ] | None = None ,
324+ admin_text : str | None = None ,
319325 plus : dict | None = None ,
320326 ):
321327 """Initialization.
@@ -331,7 +337,7 @@ def __init__(
331337 Job .__init__ (self , operation , task_type , task_type_parameters ,
332338 language , multithreaded_sandbox , archive_sandbox ,
333339 shard , keep_sandbox , sandboxes , sandbox_digests , info , success ,
334- text , files , managers , executables )
340+ text , admin_text , files , managers , executables )
335341 self .compilation_success = compilation_success
336342 self .plus = plus
337343
@@ -537,6 +543,7 @@ def __init__(
537543 success : bool | None = None ,
538544 outcome : str | None = None ,
539545 text : list [str ] | None = None ,
546+ admin_text : list [str ] | None = None ,
540547 user_output : str | None = None ,
541548 plus : dict | None = None ,
542549 only_execution : bool | None = False ,
@@ -567,7 +574,7 @@ def __init__(
567574 Job .__init__ (self , operation , task_type , task_type_parameters ,
568575 language , multithreaded_sandbox , archive_sandbox ,
569576 shard , keep_sandbox , sandboxes , sandbox_digests , info , success ,
570- text , files , managers , executables )
577+ text , admin_text , files , managers , executables )
571578 self .input = input
572579 self .output = output
573580 self .time_limit = time_limit
@@ -653,6 +660,7 @@ def to_submission(self, sr: SubmissionResult):
653660
654661 sr .evaluations += [Evaluation (
655662 text = self .text ,
663+ admin_text = self .admin_text ,
656664 outcome = self .outcome ,
657665 execution_time = self .plus .get ('execution_time' ),
658666 execution_wall_clock_time = self .plus .get (
0 commit comments