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

Final task import workers are initialized with the wrong status

    XMLWordPrintable

Details

    • High
    • In seldom circumstances the import produces tasks with no segments imported due wrong order called workers.

    Description

      problem

      The editor_Models_Import_Worker_SetTaskToOpen and editor_Models_Import_Worker_FinalStep workers are initialized with no explicit status so the default scheduled is used. But: all other import workers are added with status prepare so that plugins are able to add other workers also.

      That lead to the seldom situation where the SetTaskToOpen and FinalStep workers are triggered before the other workers are even ready to run. How that can be is still unclear since the scheduler also checks for prepared dependency workers. However, the usage of the prepare state instead schedule should resolve the problem here.

      This can lead to tasks with no segments, producing errors like

      ZfExtended_Models_Entity_NotFoundException: Foldertree Entity Not Found
      

      on task usage.

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: