Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: PythonScript@0 doesn't seem to get SIGINIT/SIGTERM #19390

Open
4 of 7 tasks
nkr0 opened this issue Dec 18, 2023 · 3 comments
Open
4 of 7 tasks

[BUG]: PythonScript@0 doesn't seem to get SIGINIT/SIGTERM #19390

nkr0 opened this issue Dec 18, 2023 · 3 comments
Assignees
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug

Comments

@nkr0
Copy link

nkr0 commented Dec 18, 2023

New issue checklist

Task name

PythonScript

Task version

0.231.0

Issue Description

This page says that SIGINT or SIGTERM is sent on job cancellation. Below is a simplified task calling testSigint.py.

          - task: PythonScript@0
            displayName: 'Build'
            inputs:
              scriptSource: 'filePath'
              scriptPath: '/home/vmuser/testSigint.py'
              pythonInterpreter: '/usr/bin/python3'
import signal, sys, time

def cancelJob(signum, frame):
    for i in range(1000):
        print(i, signal.Signals(signum).name)
    time.sleep(10)
    sys.exit(1)

signal.signal(signal.SIGABRT, cancelJob)
signal.signal(signal.SIGHUP, cancelJob)
signal.signal(signal.SIGINT, cancelJob)
signal.signal(signal.SIGQUIT, cancelJob)
signal.signal(signal.SIGTERM, cancelJob)

for i in range(1000):
    print(i, "job started")
time.sleep(600)

But the logs show that cancelJob was not called, suggesting that the process was not ended with any of the signals I tried. Running the script locally and pressing Ctrl+C triggers SIGINT and is caught as expected.

Issue #16731 is similar in that SIGINT from the agent becomes SIGTERM by the time it reached the child process. But here it's none of those.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 22.04

Relevant log output

2023-12-18T20:56:30.9556798Z ##[debug]Evaluating condition for step: 'Build'
2023-12-18T20:56:30.9564426Z ##[debug]Evaluating: SucceededNode()
2023-12-18T20:56:30.9564695Z ##[debug]Evaluating SucceededNode:
2023-12-18T20:56:30.9580087Z ##[debug]=> True
2023-12-18T20:56:30.9586644Z ##[debug]Result: True
2023-12-18T20:56:30.9659765Z ##[section]Starting: Build
2023-12-18T20:56:30.9870649Z ==============================================================================
2023-12-18T20:56:30.9871364Z Task         : Python script
2023-12-18T20:56:30.9871686Z Description  : Run a Python file or inline script
2023-12-18T20:56:30.9871805Z Version      : 0.231.0
2023-12-18T20:56:30.9872037Z Author       : Microsoft Corporation
2023-12-18T20:56:30.9872281Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/python-script
2023-12-18T20:56:30.9872434Z ==============================================================================
2023-12-18T20:56:31.1018667Z ##[debug]Using node path: /home/vmuser/agents/agent1/externals/node16/bin/node
2023-12-18T20:56:31.2149594Z ##[debug]agent.TempDirectory=/home/vmuser/agents/agent1/_work/_temp
2023-12-18T20:56:31.2150430Z ##[debug]loading inputs and endpoints
2023-12-18T20:56:31.2150861Z ##[debug]loading INPUT_SCRIPTSOURCE
2023-12-18T20:56:31.2151413Z ##[debug]loading INPUT_SCRIPTPATH
2023-12-18T20:56:31.2151831Z ##[debug]loading INPUT_PYTHONINTERPRETER
2023-12-18T20:56:31.2152247Z ##[debug]loading INPUT_WORKINGDIRECTORY
2023-12-18T20:56:31.2152643Z ##[debug]loading INPUT_FAILONSTDERR
2023-12-18T20:56:31.2153089Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2023-12-18T20:56:31.2153539Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2023-12-18T20:56:31.2154011Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2023-12-18T20:56:31.2154460Z ##[debug]loading SECRET_JENKINS_TOKEN
2023-12-18T20:56:31.2154860Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2023-12-18T20:56:31.2155280Z ##[debug]loaded 10
2023-12-18T20:56:31.2155666Z ##[debug]Agent.ProxyUrl=undefined
2023-12-18T20:56:31.2156072Z ##[debug]Agent.CAInfo=undefined
2023-12-18T20:56:31.2156470Z ##[debug]Agent.ClientCert=undefined
2023-12-18T20:56:31.2156870Z ##[debug]Agent.SkipCertValidation=undefined
2023-12-18T20:56:31.2157377Z ##[debug]check path : /home/vmuser/agents/agent1/_work/_tasks/PythonScript_6392f95f-7e76-4a18-b3c7-7f078d2f7700/0.231.0/task.json
2023-12-18T20:56:31.2157974Z ##[debug]adding resource file: /home/vmuser/agents/agent1/_work/_tasks/PythonScript_6392f95f-7e76-4a18-b3c7-7f078d2f7700/0.231.0/task.json
2023-12-18T20:56:31.2158477Z ##[debug]system.culture=en-US
2023-12-18T20:56:31.2158899Z ##[debug]scriptSource=filePath
2023-12-18T20:56:31.2159307Z ##[debug]scriptPath=/home/vmuser/testSigint.py
2023-12-18T20:56:31.2159696Z ##[debug]script=undefined
2023-12-18T20:56:31.2160088Z ##[debug]arguments=undefined
2023-12-18T20:56:31.2160490Z ##[debug]pythonInterpreter=/usr/bin/python3
2023-12-18T20:56:31.2160952Z ##[debug]workingDirectory=/home/vmuser/agents/agent1/_work/4/s
2023-12-18T20:56:31.2163098Z ##[debug]failOnStderr=false
2023-12-18T20:56:31.2172601Z ##[debug]which '/usr/bin/python3'
2023-12-18T20:56:31.2176319Z ##[debug]found: '/usr/bin/python3'
2023-12-18T20:56:31.2177415Z ##[debug]/usr/bin/python3 arg: /home/vmuser/testSigint.py
2023-12-18T20:56:31.2180794Z ##[debug]exec tool: /usr/bin/python3
2023-12-18T20:56:31.2181214Z ##[debug]arguments:
2023-12-18T20:56:31.2181742Z ##[debug]   /home/vmuser/testSigint.py
2023-12-18T20:56:31.2184760Z [command]/usr/bin/python3 /home/vmuser/testSigint.py
2023-12-18T20:56:31.2406770Z 0 job started
2023-12-18T20:56:31.2407017Z 1 job started
2023-12-18T20:56:31.2407174Z 2 job started
2023-12-18T20:56:31.2407348Z 3 job started
2023-12-18T20:56:31.2407501Z 4 job started
2023-12-18T20:56:31.2407991Z 5 job started
2023-12-18T20:56:31.2408146Z 6 job started
2023-12-18T20:56:31.2408298Z 7 job started
2023-12-18T20:56:31.2408467Z 8 job started
2023-12-18T20:56:31.2408647Z 9 job started
2023-12-18T20:56:31.2408924Z 10 job started
2023-12-18T20:56:31.2409080Z 11 job started
2023-12-18T20:56:31.2409582Z 12 job started
2023-12-18T20:56:31.2409752Z 13 job started
2023-12-18T20:56:31.2409907Z 14 job started
2023-12-18T20:56:31.2410062Z 15 job started
2023-12-18T20:56:31.2410232Z 16 job started
2023-12-18T20:56:31.2410387Z 17 job started
2023-12-18T20:56:31.2410556Z 18 job started
2023-12-18T20:56:31.2410710Z 19 job started
2023-12-18T20:56:31.2410864Z 20 job started
2023-12-18T20:56:31.2411031Z 21 job started
2023-12-18T20:56:31.2411186Z 22 job started
2023-12-18T20:56:31.2411339Z 23 job started
2023-12-18T20:56:31.2411509Z 24 job started
2023-12-18T20:56:31.2411664Z 25 job started
2023-12-18T20:56:31.2411819Z 26 job started
2023-12-18T20:56:31.2411988Z 27 job started
2023-12-18T20:56:31.2412142Z 28 job started
2023-12-18T20:56:31.2412310Z 29 job started
2023-12-18T20:56:31.2412466Z 30 job started
2023-12-18T20:56:31.2412621Z 31 job started
2023-12-18T20:56:31.2412789Z 32 job started
2023-12-18T20:56:31.2413052Z 33 job started
2023-12-18T20:56:31.2413206Z 34 job started
2023-12-18T20:56:31.2413380Z 35 job started
2023-12-18T20:56:31.2413534Z 36 job started
2023-12-18T20:56:31.2413686Z 37 job started
2023-12-18T20:56:31.2413854Z 38 job started
2023-12-18T20:56:31.2414008Z 39 job started
2023-12-18T20:56:31.2414177Z 40 job started
2023-12-18T20:56:31.2414331Z 41 job started
2023-12-18T20:56:31.2414484Z 42 job started
2023-12-18T20:56:31.2414653Z 43 job started
2023-12-18T20:56:31.2414806Z 44 job started
2023-12-18T20:56:31.2414959Z 45 job started
2023-12-18T20:56:31.2415128Z 46 job started
2023-12-18T20:56:31.2415282Z 47 job started
2023-12-18T20:56:31.2415435Z 48 job started
2023-12-18T20:56:31.2415603Z 49 job started
2023-12-18T20:56:31.2415757Z 50 job started
2023-12-18T20:56:31.2415924Z 51 job started
2023-12-18T20:56:31.2416077Z 52 job started
2023-12-18T20:56:31.2416231Z 53 job started
2023-12-18T20:56:31.2416399Z 54 job started
2023-12-18T20:56:31.2416553Z 55 job started
2023-12-18T20:56:31.2416710Z 56 job started
2023-12-18T20:56:31.2416877Z 57 job started
2023-12-18T20:56:31.2417034Z 58 job started
2023-12-18T20:56:31.2417187Z 59 job started
2023-12-18T20:56:31.2417355Z 60 job started
2023-12-18T20:56:31.2417509Z 61 job started
2023-12-18T20:56:31.2417680Z 62 job started
2023-12-18T20:56:31.2417833Z 63 job started
2023-12-18T20:56:31.2417985Z 64 job started
2023-12-18T20:56:31.2418154Z 65 job started
2023-12-18T20:56:31.2418310Z 66 job started
2023-12-18T20:56:31.2418464Z 67 job started
2023-12-18T20:56:31.2418634Z 68 job started
2023-12-18T20:56:31.2418790Z 69 job started
2023-12-18T20:56:31.2418944Z 70 job started
2023-12-18T20:56:31.2419111Z 71 job started
2023-12-18T20:56:31.2419264Z 72 job started
2023-12-18T20:56:31.2419430Z 73 job started
2023-12-18T20:56:31.2419584Z 74 job started
2023-12-18T20:56:31.2419738Z 75 job started
2023-12-18T20:56:31.2419904Z 76 job started
2023-12-18T20:56:31.2420058Z 77 job started
2023-12-18T20:56:31.2420211Z 78 job started
2023-12-18T20:56:31.2420383Z 79 job started
2023-12-18T20:56:31.2420537Z 80 job started
2023-12-18T20:56:31.2420690Z 81 job started
2023-12-18T20:56:31.2420859Z 82 job started
2023-12-18T20:56:31.2421013Z 83 job started
2023-12-18T20:56:31.2421180Z 84 job started
2023-12-18T20:56:31.2421334Z 85 job started
2023-12-18T20:56:31.2421488Z 86 job started
2023-12-18T20:56:31.2421655Z 87 job started
2023-12-18T20:56:31.2421810Z 88 job started
2023-12-18T20:56:31.2421964Z 89 job started
2023-12-18T20:56:31.2422132Z 90 job started
2023-12-18T20:56:31.2422287Z 91 job started
2023-12-18T20:56:31.2422442Z 92 job started
2023-12-18T20:56:31.2422609Z 93 job started
2023-12-18T20:56:31.2422762Z 94 job started
2023-12-18T20:56:31.2422916Z 95 job started
2023-12-18T20:56:31.2423083Z 96 job started
2023-12-18T20:56:31.2423237Z 97 job started
2023-12-18T20:56:31.2423402Z 98 job started
2023-12-18T20:56:31.2423557Z 99 job started
2023-12-18T20:56:31.2423712Z 100 job started
2023-12-18T20:56:31.2423881Z 101 job started
2023-12-18T20:56:31.2424041Z 102 job started
2023-12-18T20:56:31.2424196Z 103 job started
2023-12-18T20:56:31.2424493Z 104 job started
2023-12-18T20:56:31.2424720Z 105 job started
2023-12-18T20:56:31.2424878Z 106 job started
2023-12-18T20:56:31.2425050Z 107 job started
2023-12-18T20:56:31.2425206Z 108 job started
2023-12-18T20:56:31.2425377Z 109 job started
2023-12-18T20:56:31.2425536Z 110 job started
2023-12-18T20:56:31.2425692Z 111 job started
2023-12-18T20:56:31.2425863Z 112 job started
2023-12-18T20:56:31.2426020Z 113 job started
2023-12-18T20:56:31.2426177Z 114 job started
2023-12-18T20:56:31.2426351Z 115 job started
2023-12-18T20:56:31.2426508Z 116 job started
2023-12-18T20:56:31.2426665Z 117 job started
2023-12-18T20:56:31.2426838Z 118 job started
2023-12-18T20:56:31.2426997Z 119 job started
2023-12-18T20:56:31.2427165Z 120 job started
2023-12-18T20:56:31.2427322Z 121 job started
2023-12-18T20:56:31.2427478Z 122 job started
2023-12-18T20:56:31.2427647Z 123 job started
2023-12-18T20:56:31.2427807Z 124 job started
2023-12-18T20:56:31.2428016Z 125 job started
2023-12-18T20:56:31.2428186Z 126 job started
2023-12-18T20:56:31.2428361Z 127 job started
2023-12-18T20:56:31.2428531Z 128 job started
2023-12-18T20:56:31.2428703Z 129 job started
2023-12-18T20:56:31.2428859Z 130 job started
2023-12-18T20:56:31.2429028Z 131 job started
2023-12-18T20:56:31.2429184Z 132 job started
2023-12-18T20:56:31.2429341Z 133 job started
2023-12-18T20:56:31.2429511Z 134 job started
2023-12-18T20:56:31.2429666Z 135 job started
2023-12-18T20:56:31.2429824Z 136 job started
2023-12-18T20:56:31.2429995Z 137 job started
2023-12-18T20:56:31.2430177Z 138 job started
2023-12-18T20:56:31.2430336Z 139 job started
2023-12-18T20:56:31.2430493Z 140 job started
2023-12-18T20:56:31.2430661Z 141 job started
2023-12-18T20:56:31.2430818Z 142 job started
2023-12-18T20:56:31.2430973Z 143 job started
2023-12-18T20:56:31.2431142Z 144 job started
2023-12-18T20:56:31.2431299Z 145 job started
2023-12-18T20:56:31.2431467Z 146 job started
2023-12-18T20:56:31.2431626Z 147 job started
2023-12-18T20:56:31.2431786Z 148 job started
2023-12-18T20:56:31.2431955Z 149 job started
2023-12-18T20:56:31.2432116Z 150 job started
2023-12-18T20:56:31.2432273Z 151 job started
2023-12-18T20:56:31.2432444Z 152 job started
2023-12-18T20:56:31.2432601Z 153 job started
2023-12-18T20:56:31.2432757Z 154 job started
2023-12-18T20:56:31.2432927Z 155 job started
2023-12-18T20:56:31.2433082Z 156 job started
2023-12-18T20:56:31.2433302Z 157 job started
2023-12-18T20:56:31.2433475Z 158 job started
2023-12-18T20:56:31.2433631Z 159 job started
2023-12-18T20:56:31.2433800Z 160 job started
2023-12-18T20:56:31.2433956Z 161 job started
2023-12-18T20:56:31.2434111Z 162 job started
2023-12-18T20:56:31.2434280Z 163 job started
2023-12-18T20:56:31.2434435Z 164 job started
2023-12-18T20:56:31.2434591Z 165 job started
2023-12-18T20:56:31.2434761Z 166 job started
2023-12-18T20:56:31.2434917Z 167 job started
2023-12-18T20:56:31.2435073Z 168 job started
2023-12-18T20:56:31.2435245Z 169 job started
2023-12-18T20:56:31.2435400Z 170 job started
2023-12-18T20:56:31.2435573Z 171 job started
2023-12-18T20:56:31.2435731Z 172 job started
2023-12-18T20:56:31.2435890Z 173 job started
2023-12-18T20:56:31.2436063Z 174 job started
2023-12-18T20:56:31.2436219Z 175 job started
2023-12-18T20:56:31.2436374Z 176 job started
2023-12-18T20:56:31.2436544Z 177 job started
2023-12-18T20:56:31.2436700Z 178 job started
2023-12-18T20:56:31.2436856Z 179 job started
2023-12-18T20:56:31.2437026Z 180 job started
2023-12-18T20:56:31.2437182Z 181 job started
2023-12-18T20:56:31.2437350Z 182 job started
2023-12-18T20:56:31.2437508Z 183 job started
2023-12-18T20:56:31.2437665Z 184 job started
2023-12-18T20:56:31.2437834Z 185 job started
2023-12-18T20:56:31.2437992Z 186 job started
2023-12-18T20:56:31.2438147Z 187 job started
2023-12-18T20:56:31.2438319Z 188 job started
2023-12-18T20:56:31.2438475Z 189 job started
2023-12-18T20:56:31.2438631Z 190 job started
2023-12-18T20:56:31.2438802Z 191 job started
2023-12-18T20:56:31.2438958Z 192 job started
2023-12-18T20:56:31.2439130Z 193 job started
2023-12-18T20:56:31.2439288Z 194 job started
2023-12-18T20:56:31.2439442Z 195 job started
2023-12-18T20:56:31.2439668Z 196 job started
2023-12-18T20:56:31.2439826Z 197 job started
2023-12-18T20:56:31.2439981Z 198 job started
2023-12-18T20:56:31.2440151Z 199 job started
2023-12-18T20:56:31.2440308Z 200 job started
2023-12-18T20:56:31.2440463Z 201 job started
2023-12-18T20:56:31.2440634Z 202 job started
2023-12-18T20:56:31.2440791Z 203 job started
2023-12-18T20:56:31.2440960Z 204 job started
2023-12-18T20:56:31.2441116Z 205 job started
2023-12-18T20:56:31.2441271Z 206 job started
2023-12-18T20:56:31.2441441Z 207 job started
2023-12-18T20:56:31.2441598Z 208 job started
2023-12-18T20:56:31.2441754Z 209 job started
2023-12-18T20:56:31.2441922Z 210 job started
2023-12-18T20:56:31.2442078Z 211 job started
2023-12-18T20:56:31.2442234Z 212 job started
2023-12-18T20:56:31.2442403Z 213 job started
2023-12-18T20:56:31.2442560Z 214 job started
2023-12-18T20:56:31.2442729Z 215 job started
2023-12-18T20:56:31.2442934Z 216 job started
2023-12-18T20:56:31.2443090Z 217 job started
2023-12-18T20:56:31.2443260Z 218 job started
2023-12-18T20:56:31.2443419Z 219 job started
2023-12-18T20:56:31.2443574Z 220 job started
2023-12-18T20:56:31.2443744Z 221 job started
2023-12-18T20:56:31.2443899Z 222 job started
2023-12-18T20:56:31.2444055Z 223 job started
2023-12-18T20:56:31.2444223Z 224 job started
2023-12-18T20:56:31.2444379Z 225 job started
2023-12-18T20:56:31.2444535Z 226 job started
2023-12-18T20:56:31.2444705Z 227 job started
2023-12-18T20:56:31.2444861Z 228 job started
2023-12-18T20:56:31.2445028Z 229 job started
2023-12-18T20:56:31.2445186Z 230 job started
2023-12-18T20:56:31.2445342Z 231 job started
2023-12-18T20:56:31.2445511Z 232 job started
2023-12-18T20:56:31.2445669Z 233 job started
2023-12-18T20:56:31.2445824Z 234 job started
2023-12-18T20:56:31.2445994Z 235 job started
2023-12-18T20:56:31.2446151Z 236 job started
2023-12-18T20:56:31.2446306Z 237 job started
2023-12-18T20:56:31.2446475Z 238 job started
2023-12-18T20:56:31.2446634Z 239 job started
2023-12-18T20:56:31.2446802Z 240 job started
2023-12-18T20:56:31.2446960Z 241 job started
2023-12-18T20:56:31.2447117Z 242 job started
2023-12-18T20:56:31.2447287Z 243 job started
2023-12-18T20:56:31.2447444Z 244 job started
2023-12-18T20:56:31.2447600Z 245 job started
2023-12-18T20:56:31.2447770Z 246 job started
2023-12-18T20:56:31.2447927Z 247 job started
2023-12-18T20:56:31.2448084Z 248 job started
2023-12-18T20:56:31.2448254Z 249 job started
2023-12-18T20:56:31.2448410Z 250 job started
2023-12-18T20:56:31.2448577Z 251 job started
2023-12-18T20:56:31.2448737Z 252 job started
2023-12-18T20:56:31.2448893Z 253 job started
2023-12-18T20:56:31.2449061Z 254 job started
2023-12-18T20:56:31.2449217Z 255 job started
2023-12-18T20:56:31.2449373Z 256 job started
2023-12-18T20:56:31.2449541Z 257 job started
2023-12-18T20:56:31.2449699Z 258 job started
2023-12-18T20:56:31.2449854Z 259 job started
2023-12-18T20:56:31.2450024Z 260 job started
2023-12-18T20:56:31.2450178Z 261 job started
2023-12-18T20:56:31.2450350Z 262 job started
2023-12-18T20:56:31.2450507Z 263 job started
2023-12-18T20:56:31.2450665Z 264 job started
2023-12-18T20:56:31.2450834Z 265 job started
2023-12-18T20:56:31.2450991Z 266 job started
2023-12-18T20:56:31.2451147Z 267 job started
2023-12-18T20:56:31.2451319Z 268 job started
2023-12-18T20:56:31.2451476Z 269 job started
2023-12-18T20:56:31.2451631Z 270 job started
2023-12-18T20:56:31.2451800Z 271 job started
2023-12-18T20:56:31.2451957Z 272 job started
2023-12-18T20:56:31.2452126Z 273 job started
2023-12-18T20:56:31.2452284Z 274 job started
2023-12-18T20:56:31.2452440Z 275 job started
2023-12-18T20:56:31.2452609Z 276 job started
2023-12-18T20:56:31.2452765Z 277 job started
2023-12-18T20:56:31.2452922Z 278 job started
2023-12-18T20:56:31.2453091Z 279 job started
2023-12-18T20:56:31.2453248Z 280 job started
2023-12-18T20:56:31.2453405Z 281 job started
2023-12-18T20:56:31.2453574Z 282 job started
2023-12-18T20:56:31.2453730Z 283 job started
2023-12-18T20:56:31.2453899Z 284 job started
2023-12-18T20:56:31.2454058Z 285 job started
2023-12-18T20:56:31.2454214Z 286 job started
2023-12-18T20:56:31.2454439Z 287 job started
2023-12-18T20:56:31.2454596Z 288 job started
2023-12-18T20:56:31.2454751Z 289 job started
2023-12-18T20:56:31.2454921Z 290 job started
2023-12-18T20:56:31.2455077Z 291 job started
2023-12-18T20:56:31.2455234Z 292 job started
2023-12-18T20:56:31.2455405Z 293 job started
2023-12-18T20:56:31.2455561Z 294 job started
2023-12-18T20:56:31.2455728Z 295 job started
2023-12-18T20:56:31.2455886Z 296 job started
2023-12-18T20:56:31.2456042Z 297 job started
2023-12-18T20:56:31.2456209Z 298 job started
2023-12-18T20:56:31.2456366Z 299 job started
2023-12-18T20:56:31.2456522Z 300 job started
2023-12-18T20:56:31.2456693Z 301 job started
2023-12-18T20:56:31.2456850Z 302 job started
2023-12-18T20:56:31.2457006Z 303 job started
2023-12-18T20:56:31.2457184Z 304 job started
2023-12-18T20:56:31.2457339Z 305 job started
2023-12-18T20:56:31.2457497Z 306 job started
2023-12-18T20:56:31.2457735Z 307 job started
2023-12-18T20:56:31.2457892Z 308 job started
2023-12-18T20:56:31.2458062Z 309 job started
2023-12-18T20:56:31.2458223Z 310 job started
2023-12-18T20:56:31.2458378Z 311 job started
2023-12-18T20:56:31.2458548Z 312 job started
2023-12-18T20:56:31.2458706Z 313 job started
2023-12-18T20:56:31.2458861Z 314 job started
2023-12-18T20:56:31.2459033Z 315 job started
2023-12-18T20:56:31.2459189Z 316 job started
2023-12-18T20:56:31.2459344Z 317 job started
2023-12-18T20:56:31.2459514Z 318 job started
2023-12-18T20:56:31.2459671Z 319 job started
2023-12-18T20:56:31.2459839Z 320 job started
2023-12-18T20:56:31.2459995Z 321 job started
2023-12-18T20:56:31.2460150Z 322 job started
2023-12-18T20:56:31.2460320Z 323 job started
2023-12-18T20:56:31.2460476Z 324 job started
2023-12-18T20:56:31.2460632Z 325 job started
2023-12-18T20:56:31.2460802Z 326 job started
2023-12-18T20:56:31.2460957Z 327 job started
2023-12-18T20:56:31.2461112Z 328 job started
2023-12-18T20:56:31.2461281Z 329 job started
2023-12-18T20:56:31.2461439Z 330 job started
2023-12-18T20:56:31.2461608Z 331 job started
2023-12-18T20:56:31.2461768Z 332 job started
2023-12-18T20:56:31.2461924Z 333 job started
2023-12-18T20:56:31.2462093Z 334 job started
2023-12-18T20:56:31.2462250Z 335 job started
2023-12-18T20:56:31.2462407Z 336 job started
2023-12-18T20:56:31.2462580Z 337 job started
2023-12-18T20:56:31.2462735Z 338 job started
2023-12-18T20:56:31.2462890Z 339 job started
2023-12-18T20:56:31.2463058Z 340 job started
2023-12-18T20:56:31.2463268Z 341 job started
2023-12-18T20:56:31.2463437Z 342 job started
2023-12-18T20:56:31.2463593Z 343 job started
2023-12-18T20:56:31.2463747Z 344 job started
2023-12-18T20:56:31.2463916Z 345 job started
2023-12-18T20:56:31.2464074Z 346 job started
2023-12-18T20:56:31.2464228Z 347 job started
2023-12-18T20:56:31.2464560Z 348 job started
2023-12-18T20:56:31.2464717Z 349 job started
2023-12-18T20:56:31.2464873Z 350 job started
2023-12-18T20:56:31.2465046Z 351 job started
2023-12-18T20:56:31.2465202Z 352 job started
2023-12-18T20:56:31.2465377Z 353 job started
2023-12-18T20:56:31.2465532Z 354 job started
2023-12-18T20:56:31.2465691Z 355 job started
2023-12-18T20:56:31.2465862Z 356 job started
2023-12-18T20:56:31.2466018Z 357 job started
2023-12-18T20:56:31.2466173Z 358 job started
2023-12-18T20:56:31.2466345Z 359 job started
2023-12-18T20:56:31.2466501Z 360 job started
2023-12-18T20:56:31.2466656Z 361 job started
2023-12-18T20:56:31.2466826Z 362 job started
2023-12-18T20:56:31.2466982Z 363 job started
2023-12-18T20:56:31.2467155Z 364 job started
2023-12-18T20:56:31.2467314Z 365 job started
2023-12-18T20:56:31.2467469Z 366 job started
2023-12-18T20:56:31.2467638Z 367 job started
2023-12-18T20:56:31.2467794Z 368 job started
2023-12-18T20:56:31.2467949Z 369 job started
2023-12-18T20:56:31.2468120Z 370 job started
2023-12-18T20:56:31.2468275Z 371 job started
2023-12-18T20:56:31.2468432Z 372 job started
2023-12-18T20:56:31.2468604Z 373 job started
2023-12-18T20:56:31.2468760Z 374 job started
2023-12-18T20:56:31.2468915Z 375 job started
2023-12-18T20:56:31.2469091Z 376 job started
2023-12-18T20:56:31.2469246Z 377 job started
2023-12-18T20:56:31.2469487Z 378 job started
2023-12-18T20:56:31.2469645Z 379 job started
2023-12-18T20:56:31.2469800Z 380 job started
2023-12-18T20:56:31.2469972Z 381 job started
2023-12-18T20:56:31.2470129Z 382 job started
2023-12-18T20:56:31.2470284Z 383 job started
2023-12-18T20:56:31.2470459Z 384 job started
2023-12-18T20:56:31.2470619Z 385 job started
2023-12-18T20:56:31.2470775Z 386 job started
2023-12-18T20:56:31.2470946Z 387 job started
2023-12-18T20:56:31.2471102Z 388 job started
2023-12-18T20:56:31.2471271Z 389 job started
2023-12-18T20:56:31.2471428Z 390 job started
2023-12-18T20:56:31.2471583Z 391 job started
2023-12-18T20:56:31.2471753Z 392 job started
2023-12-18T20:56:31.2471909Z 393 job started
2023-12-18T20:56:31.2472097Z 394 job started
2023-12-18T20:56:31.2472265Z 395 job started
2023-12-18T20:56:31.2472422Z 396 job started
2023-12-18T20:56:31.2472578Z 397 job started
2023-12-18T20:56:31.2472803Z 398 job started
2023-12-18T20:56:31.2472959Z 399 job started
2023-12-18T20:56:31.2473127Z 400 job started
2023-12-18T20:56:31.2473286Z 401 job started
2023-12-18T20:56:31.2473440Z 402 job started
2023-12-18T20:56:31.2473612Z 403 job started
2023-12-18T20:56:31.2473767Z 404 job started
2023-12-18T20:56:31.2473922Z 405 job started
2023-12-18T20:56:31.2474095Z 406 job started
2023-12-18T20:56:31.2474252Z 407 job started
2023-12-18T20:56:31.2474408Z 408 job started
2023-12-18T20:56:31.2474582Z 409 job started
2023-12-18T20:56:31.2474737Z 410 job started
2023-12-18T20:56:31.2474909Z 411 job started
2023-12-18T20:56:31.2475067Z 412 job started
2023-12-18T20:56:31.2475222Z 413 job started
2023-12-18T20:56:31.2475396Z 414 job started
2023-12-18T20:56:31.2475552Z 415 job started
2023-12-18T20:56:31.2475707Z 416 job started
2023-12-18T20:56:31.2475882Z 417 job started
2023-12-18T20:56:31.2476038Z 418 job started
2023-12-18T20:56:31.2476194Z 419 job started
2023-12-18T20:56:31.2476368Z 420 job started
2023-12-18T20:56:31.2476528Z 421 job started
2023-12-18T20:56:31.2476695Z 422 job started
2023-12-18T20:56:31.2476855Z 423 job started
2023-12-18T20:56:31.2477010Z 424 job started
2023-12-18T20:56:31.2477179Z 425 job started
2023-12-18T20:56:31.2477335Z 426 job started
2023-12-18T20:56:31.2477491Z 427 job started
2023-12-18T20:56:31.2477665Z 428 job started
2023-12-18T20:56:31.2477820Z 429 job started
2023-12-18T20:56:31.2477976Z 430 job started
2023-12-18T20:56:31.2478149Z 431 job started
2023-12-18T20:56:31.2478409Z 432 job started
2023-12-18T20:56:31.2478581Z 433 job started
2023-12-18T20:56:31.2478738Z 434 job started
2023-12-18T20:56:31.2478909Z 435 job started
2023-12-18T20:56:31.2479066Z 436 job started
2023-12-18T20:56:31.2479223Z 437 job started
2023-12-18T20:56:31.2479394Z 438 job started
2023-12-18T20:56:31.2479552Z 439 job started
2023-12-18T20:56:31.2479710Z 440 job started
2023-12-18T20:56:31.2479878Z 441 job started
2023-12-18T20:56:31.2480035Z 442 job started
2023-12-18T20:56:31.2480192Z 443 job started
2023-12-18T20:56:31.2480371Z 444 job started
2023-12-18T20:56:31.2480527Z 445 job started
2023-12-18T20:56:31.2480701Z 446 job started
2023-12-18T20:56:31.2480858Z 447 job started
2023-12-18T20:56:31.2481013Z 448 job started
2023-12-18T20:56:31.2481183Z 449 job started
2023-12-18T20:56:31.2481339Z 450 job started
2023-12-18T20:56:31.2481496Z 451 job started
2023-12-18T20:56:31.2481670Z 452 job started
2023-12-18T20:56:31.2481826Z 453 job started
2023-12-18T20:56:31.2481983Z 454 job started
2023-12-18T20:56:31.2482159Z 455 job started
2023-12-18T20:56:31.2482316Z 456 job started
2023-12-18T20:56:31.2482488Z 457 job started
2023-12-18T20:56:31.2482645Z 458 job started
2023-12-18T20:56:31.2482800Z 459 job started
2023-12-18T20:56:31.2482972Z 460 job started
2023-12-18T20:56:31.2483128Z 461 job started
2023-12-18T20:56:31.2483282Z 462 job started
2023-12-18T20:56:31.2483455Z 463 job started
2023-12-18T20:56:31.2483612Z 464 job started
2023-12-18T20:56:31.2483768Z 465 job started
2023-12-18T20:56:31.2483942Z 466 job started
2023-12-18T20:56:31.2484100Z 467 job started
2023-12-18T20:56:31.2484270Z 468 job started
2023-12-18T20:56:31.2484482Z 469 job started
2023-12-18T20:56:31.2484639Z 470 job started
2023-12-18T20:56:31.2484812Z 471 job started
2023-12-18T20:56:31.2484970Z 472 job started
2023-12-18T20:56:31.2485125Z 473 job started
2023-12-18T20:56:31.2485299Z 474 job started
2023-12-18T20:56:31.2485455Z 475 job started
2023-12-18T20:56:31.2485610Z 476 job started
2023-12-18T20:56:31.2485784Z 477 job started
2023-12-18T20:56:31.2485940Z 478 job started
2023-12-18T20:56:31.2486113Z 479 job started
2023-12-18T20:56:31.2486271Z 480 job started
2023-12-18T20:56:31.2486427Z 481 job started
2023-12-18T20:56:31.2486600Z 482 job started
2023-12-18T20:56:31.2486757Z 483 job started
2023-12-18T20:56:31.2486915Z 484 job started
2023-12-18T20:56:31.2487086Z 485 job started
2023-12-18T20:56:31.2487243Z 486 job started
2023-12-18T20:56:31.2487399Z 487 job started
2023-12-18T20:56:31.2487572Z 488 job started
2023-12-18T20:56:31.2487778Z 489 job started
2023-12-18T20:56:31.2487951Z 490 job started
2023-12-18T20:56:31.2488108Z 491 job started
2023-12-18T20:56:31.2488267Z 492 job started
2023-12-18T20:56:31.2488437Z 493 job started
2023-12-18T20:56:31.2488596Z 494 job started
2023-12-18T20:56:31.2488751Z 495 job started
2023-12-18T20:56:31.2488922Z 496 job started
2023-12-18T20:56:31.2489078Z 497 job started
2023-12-18T20:56:31.2489233Z 498 job started
2023-12-18T20:56:31.2489404Z 499 job started
2023-12-18T20:56:31.2489560Z 500 job started
2023-12-18T20:56:31.2489717Z 501 job started
2023-12-18T20:56:31.2489893Z 502 job started
2023-12-18T20:56:31.2490049Z 503 job started
2023-12-18T20:56:31.2490222Z 504 job started
2023-12-18T20:56:31.2490380Z 505 job started
2023-12-18T20:56:31.2490536Z 506 job started
2023-12-18T20:56:31.2490708Z 507 job started
2023-12-18T20:56:31.2490865Z 508 job started
2023-12-18T20:56:31.2491023Z 509 job started
2023-12-18T20:56:31.2491195Z 510 job started
2023-12-18T20:56:31.2491351Z 511 job started
2023-12-18T20:56:31.2491510Z 512 job started
2023-12-18T20:56:31.2491682Z 513 job started
2023-12-18T20:56:31.2491840Z 514 job started
2023-12-18T20:56:31.2492012Z 515 job started
2023-12-18T20:56:31.2492169Z 516 job started
2023-12-18T20:56:31.2492324Z 517 job started
2023-12-18T20:56:43.1891510Z ##[debug]Re-evaluate condition on job cancellation for step: 'Build'.
2023-12-18T20:56:43.1954868Z 518 
2023-12-18T20:56:43.2046438Z ##[error]The operation was canceled.
2023-12-18T20:56:43.2058840Z ##[debug]System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Threading.CancellationToken.ThrowIfCancellationRequested()
   at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in /home/vsts/work/1/s/src/Agent.Sdk/ProcessInvoker.cs:line 376
   at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in /home/vsts/work/1/s/src/Microsoft.VisualStudio.Services.Agent/ProcessInvoker.cs:line 308
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in /home/vsts/work/1/s/src/Agent.Worker/Handlers/StepHost.cs:line 76
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.RunAsync() in /home/vsts/work/1/s/src/Agent.Worker/Handlers/NodeHandler.cs:line 206
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync() in /home/vsts/work/1/s/src/Agent.Worker/TaskRunner.cs:line 407
   at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken) in /home/vsts/work/1/s/src/Agent.Worker/StepsRunner.cs:line 236
2023-12-18T20:56:43.2062213Z ##[section]Finishing: Build

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

@ivanduplenskikh
Copy link
Contributor

@nkr0, can you provide additional downloadable logs?
Method CancelAndKillProcessTree should send signals and kill the process tree.
Also, you can check the output of the variable value.

@nkr0
Copy link
Author

nkr0 commented Dec 18, 2023

I'm not sure if it is safe to share downloadable logs. But I've it and if you ask for something I can share relevant info here.
grep -r "Force kill process on cancellation" returned

Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 07:14:45Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 07:18:06Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 07:53:42Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 08:55:15Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 09:07:59Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 09:11:22Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 09:15:55Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 09:18:55Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 09:23:01Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 09:30:00Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 10:54:51Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 11:09:39Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 11:17:47Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 11:39:35Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 13:03:10Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 13:27:23Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 13:29:31Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 13:31:38Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 13:57:33Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 13:59:02Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:15:54Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:17:59Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:20:37Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:27:38Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:29:34Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:31:08Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:41:38Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:53:42Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 14:56:03Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 15:03:26Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 15:06:59Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 15:14:08Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 15:19:29Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 15:27:06Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 16:01:35Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 16:40:38Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 20:45:59Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 20:46:54Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 20:48:33Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 20:50:01Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 20:50:47Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 20:55:52Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 20:56:29Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Worker_20231218-205629-utc.log:[2023-12-18 20:56:31Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'False'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Worker_20231218-205629-utc.log:[2023-12-18 20:56:43Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'False'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Worker_20231218-205629-utc.log:[2023-12-18 20:56:43Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'False'

Quite weird that Build 20231218.52 initiated around 2023-12-18 20:56:43 has log entries at 2023-12-18 07:14:45

@nkr0 nkr0 changed the title [BUG]: PythonScript@0 doesn't seem to get SIGINIT/SIG [BUG]: PythonScript@0 doesn't seem to get SIGINIT/SIGTERM Dec 18, 2023
@nkr0
Copy link
Author

nkr0 commented Dec 18, 2023

From the timestamps, I would say that the last 4 lines are from the same run. And it looks like the agent is sending force kill, before the worker gets to try SIGINT and SIGTERM.

Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Agent_20231217-170531-utc.log:[2023-12-18 20:56:29Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'True'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Worker_20231218-205629-utc.log:[2023-12-18 20:56:31Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'False'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Worker_20231218-205629-utc.log:[2023-12-18 20:56:43Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'False'
Agent Diagnostic Logs/Build 20231218.52-JenkinsBuild/Worker_20231218-205629-utc.log:[2023-12-18 20:56:43Z INFO ProcessInvokerWrapper]   Force kill process on cancellation: 'False'

@ivanduplenskikh ivanduplenskikh added the Area: ABTT Akvelon Build Tasks Team area of work label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug
Projects
None yet
Development

No branches or pull requests

3 participants