Skip to content

Commit ac99fdb

Browse files
committed
chore: ensure only one assessment comment per submission
1 parent f1ec9da commit ac99fdb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/sidekiq/accept_overseer_job.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ def perform(task_id, _output_path, docker_image_name_tag, submission, assessment
4747
success_status = nil
4848
failure_status = nil
4949

50-
oa.add_assessment_comment("Tests in progress")
50+
comment = task.comments.find_by(commentable: oa)
51+
unless comment
52+
oa.add_assessment_comment("Tests in progress")
53+
end
5154

5255
steps_attempted = 0
5356
steps_passed = 0

0 commit comments

Comments
 (0)