Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4337

BatchCleanupWorker stays in state "prepare" after Analysis was defunct or even run successfully in some situations

    XMLWordPrintable

Details

    Description

      When the MatchAnalysis fails and the MatchAnalysis-Worker goes to defunct, the BatchCleanupWorker stays in state "prepare". Reason is presumably the following Code-Sequence where the BatchCleanupWorker is deeper nested:

      $workerId = $batchWorker->queue($parentWorkerId, $workerState, false);
      $this->queueBatchCleanUpWorker($workerId, $task->getTaskGuid(), $workerState);

       
      There even were Tasks with a successfully finished Analysis where the BatchCleanupWorker still was in the DB (what must not happen, how can it happen ?):

       

      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      15698 0         done 415711  2024-05-14 14:50:54 2024-05-14 14:50:54 00:00:00 (0)    {f57d53bc-32b7-478a-a815-2eace80419fe} editor_Task_Operation_StartingWorker    100%  
      15699 15698 done 416049  2024-05-14 14:54:38 2024-05-14 14:54:38 00:00:00 (0)    {f57d53bc-32b7-478a-a815-2eace80419fe} editor_Task_Operation_FinishingWorker   100%  
      15700 15698 done 415767  2024-05-14 14:50:55 2024-05-14 14:51:15 00:00:20 (20)  {f57d53bc-32b7-478a-a815-2eace80419fe} editor_Plugins_MatchAnalysis_BatchWorker   100%  
      15701 15700 prepare                                                                                                         {f57d53bc-32b7-478a-a815-2eace80419fe} MittagQI\Translate5\LanguageResource\Pretranslation\BatchCleanupWorker 0% 
      15702 15698 done 415712  2024-05-14 14:50:54 2024-05-14 14:50:55 00:00:01 (1)    {f57d53bc-32b7-478a-a815-2eace80419fe} MittagQI\Translate5\Plugins\MatchAnalysis\PauseMatchAnalysisWorker  100%  
      15703 15698 done 415783  2024-05-14 14:51:16 2024-05-14 14:53:24 00:02:08 (128) {f57d53bc-32b7-478a-a815-2eace80419fe} editor_Plugins_MatchAnalysis_Worker     100%  
      15704 15698 done 415908  2024-05-14 14:53:24 2024-05-14 14:53:24 00:00:00 (0)    {f57d53bc-32b7-478a-a815-2eace80419fe} editor_Segment_Quality_OperationWorker     100%  
      15705 15704 done 415922  2024-05-14 14:53:25 2024-05-14 14:53:30 00:00:05 (5)    {f57d53bc-32b7-478a-a815-2eace80419fe} MittagQI\Translate5\Plugins\TermTagger\Worker   100%  
      15706 15704 done 415923  2024-05-14 14:53:25 2024-05-14 14:54:21 00:01:56 (56)  {f57d53bc-32b7-478a-a815-2eace80419fe} MittagQI\Translate5\Plugins\SpellCheck\Worker   100%  
      15707 15704 done 416006  2024-05-14 14:54:21 2024-05-14 14:54:38 00:00:17 (17)  {f57d53bc-32b7-478a-a815-2eace80419fe} editor_Segment_Quality_OperationFinishingWorker    100% 
      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      Attachments

        Activity

          People

            aleksandar Aleksandar Mitrev
            axelbecher Axel Becher
            Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: