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

Stop PdfToHtmlWorker if pdfconverter failed to create a job

    XMLWordPrintable

Details

    • Medium
    • Hide
      PdfToHtmlWorker now finishes immediately if the conversion job failed to create or there is an error occurred while retrieving the conversion job result. So now the error on task import appears faster without waiting for the maximum pdfconverter timeout to exceed.
      Show
      PdfToHtmlWorker now finishes immediately if the conversion job failed to create or there is an error occurred while retrieving the conversion job result. So now the error on task import appears faster without waiting for the maximum pdfconverter timeout to exceed.

    Description

      When creating a job for pdfconverter response status code should be 201. 
      Currently, that is not checked and in case pdfconverter service fail to create a job for some reason worker still tries to retrieve converted HTML, which won't be possible.

      Solution:

      Add checking status code after creating a job for pdfconverter and throw an error if it is not 201

      Attachments

        Activity

          People

            leonkiz Leon Kiz
            leonkiz Leon Kiz
            Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: