code: def check_for_duplicate_assignments(participant):
      
      participants = models.Participant.query.filter_by(
          assignment_id=participant.assignment_id
      ).all()
      duplicates = [
          p for p in participants if (p.id != participant.id and p.status == "working")
      ]
      for d in duplicates:
          q.enqueue(worker_function, "AssignmentAbandoned", None, d.id)
docs: Check that the assignment_id of the participant is unique.
  
      If it isnt the older participants will be failed.