Page MenuHomePhabricator

[wmf.17] ReassignMentees failed to assign {mentor} as {user}'s mentor for {reason}
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error
normalized_message
ReassignMentees failed to assign {mentor} as {user}'s mentor for {reason}
exception.trace
ReassignMentees failed to assign [...] as Unkn0wnEB's mentor for {{GENDER:Unkn0wnEB|Unkn0wnEB}} opted out of mentorship
Impact
  • level Warning
  • the rate of errors - 4 in a day
  • all errors are on hewiki
Notes
  • I looked at the other "ReassignMentees..." errors, phabricator search and this specific reason seems to be new - started on Jan 21/2024 and (logstash link

Details

Request URL
https://mw-jobrunner.discovery.wmnet/rpc/RunSingleJob.php

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Maybe opted-out mentee has mentor that also opted out from being mentor.

Script should clear mentor info from mentee or ignore opted-out mentees (this will leave opted-out mentor if mentee re-opt-in).

Add this check to getRandomAutoAssignedMentor as it is in getMentorForUser (with dropMenteeRelationship) or before it (if) or don't call this if opted-out.

File: includes/Mentorship/ReassignMentees.php