Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27617

Isolate durable task in a dedicated Windows process group

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Durable task is launched in the process tree of slave.jar process.

      When slave agent exits, it doesn't kill durable tasks (ProcessTree utility excludes the detached build). But when the slave is managed as a Windows service, the service wrapper kills all processes of the process tree and consequently stops durable tasks.

      Durable task should be launched in a dedicated process group isolated from slave.jar process tree.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            wmic process call create looks promising, if it can be made to pass Create_New_Process_Group.

            Show
            jglick Jesse Glick added a comment - wmic process call create looks promising, if it can be made to pass Create_New_Process_Group .
            Hide
            jglick Jesse Glick added a comment -

            Also considering using Golang, or using jna-platform.

            Show
            jglick Jesse Glick added a comment - Also considering using Golang, or using jna-platform .
            Hide
            jglick Jesse Glick added a comment -

            By depending on net.java.dev.jna:jna-platform:4.1.0 we could call Kernel32.INSTANCE.CreateProcess with WinBase.CREATE_NEW_PROCESS_GROUP. Would it help?

            Show
            jglick Jesse Glick added a comment - By depending on net.java.dev.jna:jna-platform:4.1.0 we could call Kernel32.INSTANCE.CreateProcess with WinBase.CREATE_NEW_PROCESS_GROUP . Would it help?
            Hide
            ydubreuil Yoann Dubreuil added a comment -

            This stackoverflow http://stackoverflow.com/questions/5177140/creating-independent-process suggests that it should help. But it says that an intermediate process needs to be created to properly escape the supervision of the root process.

            Show
            ydubreuil Yoann Dubreuil added a comment - This stackoverflow http://stackoverflow.com/questions/5177140/creating-independent-process suggests that it should help. But it says that an intermediate process needs to be created to properly escape the supervision of the root process.
            Hide
            gabloe Gabriel Loewen added a comment -

            Not having durable tasks on Windows is a major blocker for me. Is there any update on this issue?

            Show
            gabloe Gabriel Loewen added a comment - Not having durable tasks on Windows is a major blocker for me. Is there any update on this issue?

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ydubreuil Yoann Dubreuil
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: