<< Back to previous view |
![]() |
[QB-4175] Option "cancel immediately" not working for pre-build script
|
|
Status: | Resolved |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | 15.0.10 |
Type: | Bug | Priority: | Major |
Reporter: | Robin Shen | Assigned To: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
Description |
From customer:
I tried to cancel build when running sleep() command and it can be cancelled immediately. But when I run sleep() command in "Pre-Build Script" the request can not be cancelled. If build server was hang when a new request has just created, we can not cancel the request to free the queue. So I think this task is only affect to running build but not for request in queue. |
Comments |
Comment by Nguyen Danh Hung [ 08/May/25 02:36 AM ] |
Hello Mr. Robin Shen,
I applied change of this task, here are my steps to test the change: - Pre-queue script: sleep(5000) - Pre-build script: sleep(20000) - Cancel Immediately: Yes But when I trigger build: - After 5 seconds, request appear in request queue: status: CHECKING_BUILD_CONDITION -> RUNNING_BUILD (1) - After 20 seconds, build was triggered status: RUNNING_BUILD, duration 20s - If I cancel request in step (1), the build will be triggered immediately I think the request should be canceled and not created into a build. Please help me check if my test is correct. |