Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Trigger Step Cancel Delay #4554

micnguyen ·

Hi,

It seems there is a fairly large delay in some of our builds between cancelling a build and it actually completing and being marked as Cancelled.
My initial feeling is that it is due to some logic with trigger steps? Ex.

I have a Build that the Server issues a cancel command at

2024-02-06 14:07:20,071 WARN  com.pmease.quickbuild.grid.GridTaskFuture - Job still exists on job node and cancel command is issued

The node running the trigger step issues a cancel command at

2024-02-06 14:07:20,137 WARN  com.pmease.quickbuild.grid.GridTaskFuture - Job still exists on job node and cancel command is issued

The trigger step doesn't start running until

14:07:20,314 INFO - Running step...
14:07:20,129 INFO  - Checking step execute condition...
14:07:20,129 INFO  - Step execute condition satisfied, executing...
14:07:20,314 INFO  - Executing pre-execute action...
14:07:20,314 INFO  - Running step...

The entire build doesn't completely cancel until 14:11:11,200 which is almost 4 minutes after the initial cancel command was issued.

I have another build where the node in charge of the trigger step issues a cancel command at

2024-01-31 13:18:33,346 WARN  com.pmease.quickbuild.grid.GridTaskFuture - Job still exists on job node and cancel command is issued

and the trigger step starts up after:

13:18:33,780 INFO  - Checking step execute condition...
13:18:33,780 INFO  - Step execute condition satisfied, executing...
13:18:34,038 INFO  - Executing pre-execute action...
13:18:34,038 INFO  - Running step...

Is there any way to prevent the trigger when the cancel command is issued prior to it running?
And, even with the build being triggered, why is there such a large delay between the build cancelling and for it to stop running?

  • replies 7
  • views 701
  • stars 1
micnguyen ·

Also, is there a way to check if a cancel command has been issued to a build?

robinshen ADMIN ·

Can you please let me know which QB version you are using?

micnguyen ·

QuickBuild 13.0.31

robinshen ADMIN ·

Just set up a test configuration and trigger build step will be skipped if step prior to it is cancelled, unless the execute condition is specified as "always execute". If this is not situation at your side, can you please reproduce this with a demo setup and send me the database backup?

micnguyen ·

Hey Robin,
I was able to recreate it with a simpler setup. The steps prior should not be cancelled,
there should be a trigger step with a long pre-execute action.
If the build is cancelled during the pre-execute action, the trigger will continue to run and the build only cancels after the triggered build runs to completion.

robinshen ADMIN ·
micnguyen ·

Thanks for the quick fix!