== Current status
We have rewritten the jobs and fixed multiple issues. Currently investigating why there are no sign of jobs added by [[ https://gerrit.wikimedia.org/g/mediawiki/extensions/TranslationNotifications/+/14bf1234b5fdafb63051f3678874008d1c4657b0/includes/Jobs/TranslationNotificationSubmitJob.php#152 | TranslationNotificationSubmitJob ]] using this code:
```
foreach ( $jobsByTarget as $wiki => $jobs ) {
$this->logInfo( "Wiki: $wiki, Jobs: " . count( $jobs ) );
JobQueueGroup::singleton( $wiki )->push( $jobs );
}
```
We know from logs that this code is certainly executed, and execution is not stopped by uncaught exception. Previously we thought it was caused by non-primitive data types in log params, but we fixed that and now there is absolutely nothing in the logs that would explain what is happening. Based on the evidence, the jobs are silently getting dropped before being added to the queue. There shouldn't be anything special about queuing more jobs from inside a job, right?
== Original report
Hello. It seems that Translation Notification Bot is broken again. It is sending the same notification up to 4 times to the translators. I've picked a random example at: <https://meta.wikimedia.org/w/index.php?title=User_talk:MrLeopold&action=history>. I've globally locked the account to prevent the bot from editing until this can be sorted out. Thanks.