Does on_finish (Finalize) script is called when the build was stopped due to timeout?

Grigorii's Avatar

Grigorii

13 Feb, 2023 02:16 PM

Hi all,

Does the on_finish script executes when the build is stopped due to "Build execution time has reached the maximum allowed time for your plan (60 minutes).". If not, is there any way to upload something to artifacts when timeout is reached?

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Feb, 2023 04:53 PM

    Feodor Fitsner's Avatar

    Hi Grigorii,

    on_finish is not called when timeout occurs (otherwise how much time would be "allowed" to run on_finish scripts?). I think you can schedule some background job on init stage of your build to run in, let's say, 59 minutes: https://learn.microsoft.com/en-us/powershell/module/psscheduledjob/...

  2. Feodor Fitsner closed this discussion on 15 Apr, 2023 09:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac