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

Timeout step ignores "Grace Period" before force killing

    Details

    • Similar Issues:
    • Released As:
      workflow-basic-steps 2.8.3 and 2.13

      Description

      The timeout step does not use the defined grace period. Which is 5s in testing and 60s in production. Instead it reuses the timeout which results enormous waiting times if the job is unkillable.

      This example takes 20 minutes to complete instead of 11 minutes (10 minute timeout + 1 minute grace period):

       

       

      timeout(time: 10, unit: 'MINUTES') {
      
          unkillable()
      
      }
      

       

        Attachments

          Activity

          xaseron Michael Werner created issue -
          Show
          xaseron Michael Werner added a comment - PR to fix this issue: https://github.com/jenkinsci/workflow-basic-steps-plugin/pull/76
          dnusbaum Devin Nusbaum made changes -
          Field Original Value New Value
          Remote Link This issue links to "jenkinsci/workflow-basic-steps-plugin#76 (Web Link)" [ 22027 ]
          abayer Andrew Bayer made changes -
          Assignee Michael Werner [ xaseron ]
          abayer Andrew Bayer made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          abayer Andrew Bayer made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          xaseron Michael Werner made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          dnusbaum Devin Nusbaum made changes -
          Released As workflow-basic-steps 2.8.3 and 2.13

            People

            • Assignee:
              xaseron Michael Werner
              Reporter:
              xaseron Michael Werner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: