Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19172

Add a timeout to the CommandLineExecutorService

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Core

      Description

      When a command line is run and freezes, the Nuxeo thread that started it also is freezed.

      I had an example using wkhtmltopdf, when converting a complex distant page (nuxeo.com ) to pdf. Sometime, it could freeze on Linux Ubuntu (top shows wkhtmltopdf present, almost not using cpu, but never quitting.

      So, by default there should be no timeout (compatibility), but a parameter in the XML configuration should allow to set a timeout (milliseconds or seconds probably). When this timeout is reached, if the command is still running, it is quit or possibly force quit.

      Having a frozen command line is problem for example in async converters stacked in a limited queue. Once 2, 3, n ("max in queue") are frozen, no one can be added to the queue.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: