Click here to Skip to main content
15,887,930 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Expected behavior when you start and stop a service Pin
honey the codewitch27-Jul-20 10:00
mvahoney the codewitch27-Jul-20 10:00 
GeneralRe: Expected behavior when you start and stop a service Pin
ZurdoDev27-Jul-20 10:07
professionalZurdoDev27-Jul-20 10:07 
GeneralRe: Expected behavior when you start and stop a service Pin
honey the codewitch27-Jul-20 11:40
mvahoney the codewitch27-Jul-20 11:40 
GeneralRe: Expected behavior when you start and stop a service Pin
dandy7227-Jul-20 10:26
dandy7227-Jul-20 10:26 
AnswerRe: Expected behavior when you start and stop a service Pin
Daniel Pfeffer27-Jul-20 9:42
professionalDaniel Pfeffer27-Jul-20 9:42 
GeneralRe: Expected behavior when you start and stop a service Pin
honey the codewitch27-Jul-20 9:59
mvahoney the codewitch27-Jul-20 9:59 
AnswerRe: Expected behavior when you start and stop a service Pin
PIEBALDconsult27-Jul-20 11:45
mvePIEBALDconsult27-Jul-20 11:45 
AnswerRe: Expected behavior when you start and stop a service Pin
Gary R. Wheeler27-Jul-20 15:03
Gary R. Wheeler27-Jul-20 15:03 
It depends upon the purpose of the service. Our automated build process runs as a service on our department servers. The process is essentially a finite state machine, and the build machine/service can be stopped and restarted at any state transition. When we first started with this version of the process, some of our builds took over 90 minutes. The ability to pause and cancel a build were important, especially with three servers sometimes each running multiple builds. We've stolen pilfered inventively acquired some better hardware for our servers, so most of our builds are down to 15 minutes or less. This has reduced the need for the pause/resume facility, but it's still nice to be able to restart a build server while a build is in progress, and the build still completes.

The only place where our approach has unexpected results is that the service implements a lightweight framework where we can perform product-specific actions as part of the process. If you change that code while a build using it is executing (easy to do while debugging), the results are... interesting. After doing this to myself several times, I modified the post-build step for the build service to delete existing build state.
Software Zen: delete this;

AnswerRe: Expected behavior when you start and stop a service Pin
Mircea Neacsu27-Jul-20 15:52
Mircea Neacsu27-Jul-20 15:52 
AnswerRe: Expected behavior when you start and stop a service Pin
Marc Clifton27-Jul-20 16:43
mvaMarc Clifton27-Jul-20 16:43 
GeneralRe: Expected behavior when you start and stop a service Pin
honey the codewitch27-Jul-20 17:17
mvahoney the codewitch27-Jul-20 17:17 
GeneralRe: Expected behavior when you start and stop a service Pin
Jon McKee27-Jul-20 17:28
professionalJon McKee27-Jul-20 17:28 
AnswerRe: Expected behavior when you start and stop a service Pin
Garth J Lancaster27-Jul-20 16:49
professionalGarth J Lancaster27-Jul-20 16:49 
GeneralRe: Expected behavior when you start and stop a service Pin
Jon McKee27-Jul-20 17:32
professionalJon McKee27-Jul-20 17:32 
GeneralRe: Expected behavior when you start and stop a service Pin
Garth J Lancaster27-Jul-20 19:55
professionalGarth J Lancaster27-Jul-20 19:55 
AnswerRe: Expected behavior when you start and stop a service Pin
F-ES Sitecore28-Jul-20 1:05
professionalF-ES Sitecore28-Jul-20 1:05 
GeneralRe: Expected behavior when you start and stop a service Pin
User 1106097928-Jul-20 8:47
User 1106097928-Jul-20 8:47 
AnswerRe: Expected behavior when you start and stop a service Pin
Dan Neely28-Jul-20 2:49
Dan Neely28-Jul-20 2:49 
AnswerRe: Expected behavior when you start and stop a service Pin
obermd28-Jul-20 3:29
obermd28-Jul-20 3:29 
GeneralPermanent changes? Pin
ZurdoDev27-Jul-20 8:56
professionalZurdoDev27-Jul-20 8:56 
GeneralRe: Permanent changes? Pin
honey the codewitch27-Jul-20 9:09
mvahoney the codewitch27-Jul-20 9:09 
GeneralRe: Permanent changes? Pin
Daniel Pfeffer27-Jul-20 9:10
professionalDaniel Pfeffer27-Jul-20 9:10 
GeneralRe: Permanent changes? Pin
ZurdoDev27-Jul-20 9:34
professionalZurdoDev27-Jul-20 9:34 
GeneralRe: Permanent changes? Pin
Jon McKee27-Jul-20 12:37
professionalJon McKee27-Jul-20 12:37 
GeneralRe: Permanent changes? Pin
ZurdoDev27-Jul-20 14:26
professionalZurdoDev27-Jul-20 14:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.