Page MenuHomePhabricator

ReassignMentees failed to reassign mentees for {mentor}; no mentor is available
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error
normalized_message
ReassignMentees failed to reassign mentees for {mentor}; no mentor is available
exception.trace
message  ReassignMentees failed to reassign mentees for ~aanzx; no mentor is available
timestamp 2024-01-05T16:04:54+00:00
url /rpc/RunSingleJob.php
wiki knwiki
Impact

Details

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

Event Timeline

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

Hello sorry for inconvenience caused by above, I was trying to remove mentees assigned to me, so I had removed myself from mentor list, it would surely be helpful if there would be a option to could remove , although earlier on October 31, 2022 when I removed myself from mentor list and added back myself, old mentees were automatically assigned back to me

This is an expected error message for situations when the last mentor quits (in that case, there is no mentor to reassign the mentees to, so they stay where they are and the reassignment errors out). We probably don't need to log thousand plus of those warning messages (OTOH, that gives them visibility :)), but the messages themselves aren't the problem.

the same issue was fixed in https://phabricator.wikimedia.org/T327399

We fixed the issue there by disabling mentorship at jvwiki; we did not take any action besides that. We still don't have any handling for situations when the last mentor quits, which is what the warning messages are to signalize.

I could've swear we have a generic task for "last mentor resigns" (which we can merge this with), but I can't seem to find it. @KStoller-WMF or @Trizek-WMF, does this ring any bell with you? If not, we can probably repurpose this task :).

Hello sorry for inconvenience caused by above, I was trying to remove mentees assigned to me, so I had removed myself from mentor list, it would surely be helpful if there would be a option to could remove , although earlier on October 31, 2022 when I removed myself from mentor list and added back myself, old mentees were automatically assigned back to me

No worries at all! I'd like to clarify one thing – the mentees were in fact never reassigned (considering you were/are the last mentor, there is no one else to reassign them to), so when you re-enrolled, you continued to see your then-mentees. This is definitely a problem to resolve, but there are a couple of reasonable actions to take, and I don't believe we left a conclusion on that.

Hmmmm, I'm also not seeing a generic task for this issue.

@Anoop sorry for the confusion on your side! When you were trying to remove mentees, was it because you were ready to quit mentorship, wanted to reduce the number of accounts assigned to you, or was there some other reason that prompted you to do that?

When you were trying to remove mentees, was it because you were ready to quit mentorship, wanted to reduce the number of accounts assigned to you, or was there some other reason that prompted you to do that?

I was trying to start fresh this year so that i see statistics from only new mentees, i just tried removing myself from mentorship and join again in future when needed