Killing a long running build task...

Hello,
We have a custom build step in TeamCity that runs a command line process. We've had occasions lately that something goes wrong during this process that will hang it up and requires human interaction to go in and manually killing the build. This happened last night and was hung for > 13 hours.
Is there some service available in TeamCity where a running task can be killed after a set amount of time and return a failure?

Thanks, and happy Friday!

4 comments
Comment actions Permalink

Aww, well that's pretty obvious thanks... unfortunately our project already has this option turned on. Either it's not working properly (we've been running this project for a long time so I would think the stats should have compiled long enough to determine when it's been too long... 7 hours would be much longer than any prior run by > 5 hours). Or is limited to only native tasks (e.g., not commandline execution)?

I'll mark this as answered but it's not working as I would have expected.

0
Comment actions Permalink

I had already had this option enabled in our project, though it doesn't seem to be working as I had expected.
However I was reminded where the option was located which was what my question entailed.

0
Comment actions Permalink

Maybe just a mail is sent (if registered) and the process is not terminated.

0

Please sign in to leave a comment.