TFS Prepare for Shutdown/Restart











up vote
1
down vote

favorite
1












I am new to TFS.



Is there anyway to notify TFS to not to start new build/test/releases as we are about to restart/shutdown the TFS server?



Jenkins has a similar feature, where it puts up a banner saying 'Jenkins is going to shut down' and stop queuing new builds. Does TFS have such a feature?










share|improve this question






















  • You can disable the agents in the "Agent Pools" screen off the Settings menu. This will allow current running builds to complete, but prevent new builds being queued. There's nothing that will give an alerts to users, aside from them seeing their builds queue up.
    – Pero P.
    Nov 7 at 17:39












  • Are you restarting your app tier so often that this is a concern? If so, why?
    – Daniel Mann
    Nov 7 at 18:34










  • @DanielMann not often, but the TFS host machine is a Windows Server and it requests restart after updates. So I would want to restart the machine with proper notice to the whole team.
    – dushyantp
    Nov 8 at 10:57

















up vote
1
down vote

favorite
1












I am new to TFS.



Is there anyway to notify TFS to not to start new build/test/releases as we are about to restart/shutdown the TFS server?



Jenkins has a similar feature, where it puts up a banner saying 'Jenkins is going to shut down' and stop queuing new builds. Does TFS have such a feature?










share|improve this question






















  • You can disable the agents in the "Agent Pools" screen off the Settings menu. This will allow current running builds to complete, but prevent new builds being queued. There's nothing that will give an alerts to users, aside from them seeing their builds queue up.
    – Pero P.
    Nov 7 at 17:39












  • Are you restarting your app tier so often that this is a concern? If so, why?
    – Daniel Mann
    Nov 7 at 18:34










  • @DanielMann not often, but the TFS host machine is a Windows Server and it requests restart after updates. So I would want to restart the machine with proper notice to the whole team.
    – dushyantp
    Nov 8 at 10:57















up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I am new to TFS.



Is there anyway to notify TFS to not to start new build/test/releases as we are about to restart/shutdown the TFS server?



Jenkins has a similar feature, where it puts up a banner saying 'Jenkins is going to shut down' and stop queuing new builds. Does TFS have such a feature?










share|improve this question













I am new to TFS.



Is there anyway to notify TFS to not to start new build/test/releases as we are about to restart/shutdown the TFS server?



Jenkins has a similar feature, where it puts up a banner saying 'Jenkins is going to shut down' and stop queuing new builds. Does TFS have such a feature?







tfs azure-devops tfsbuild tfs2018






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 7 at 17:16









dushyantp

1,57962545




1,57962545












  • You can disable the agents in the "Agent Pools" screen off the Settings menu. This will allow current running builds to complete, but prevent new builds being queued. There's nothing that will give an alerts to users, aside from them seeing their builds queue up.
    – Pero P.
    Nov 7 at 17:39












  • Are you restarting your app tier so often that this is a concern? If so, why?
    – Daniel Mann
    Nov 7 at 18:34










  • @DanielMann not often, but the TFS host machine is a Windows Server and it requests restart after updates. So I would want to restart the machine with proper notice to the whole team.
    – dushyantp
    Nov 8 at 10:57




















  • You can disable the agents in the "Agent Pools" screen off the Settings menu. This will allow current running builds to complete, but prevent new builds being queued. There's nothing that will give an alerts to users, aside from them seeing their builds queue up.
    – Pero P.
    Nov 7 at 17:39












  • Are you restarting your app tier so often that this is a concern? If so, why?
    – Daniel Mann
    Nov 7 at 18:34










  • @DanielMann not often, but the TFS host machine is a Windows Server and it requests restart after updates. So I would want to restart the machine with proper notice to the whole team.
    – dushyantp
    Nov 8 at 10:57


















You can disable the agents in the "Agent Pools" screen off the Settings menu. This will allow current running builds to complete, but prevent new builds being queued. There's nothing that will give an alerts to users, aside from them seeing their builds queue up.
– Pero P.
Nov 7 at 17:39






You can disable the agents in the "Agent Pools" screen off the Settings menu. This will allow current running builds to complete, but prevent new builds being queued. There's nothing that will give an alerts to users, aside from them seeing their builds queue up.
– Pero P.
Nov 7 at 17:39














Are you restarting your app tier so often that this is a concern? If so, why?
– Daniel Mann
Nov 7 at 18:34




Are you restarting your app tier so often that this is a concern? If so, why?
– Daniel Mann
Nov 7 at 18:34












@DanielMann not often, but the TFS host machine is a Windows Server and it requests restart after updates. So I would want to restart the machine with proper notice to the whole team.
– dushyantp
Nov 8 at 10:57






@DanielMann not often, but the TFS host machine is a Windows Server and it requests restart after updates. So I would want to restart the machine with proper notice to the whole team.
– dushyantp
Nov 8 at 10:57














2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










Nothing with an alert - there might be an extension, or you could build one to do the alerting, but the best you can do is disable the agent pools at the following address:



https://[my].visualstudio.com/_settings/agentpools


Agent Pools



This will stop the builds agents from queuing new builds in the pipeline until you re-enable them.






share|improve this answer




























    up vote
    0
    down vote













    On the application tier call TFSServiceControl quesce. The documentation for the command is https://docs.microsoft.com/en-us/tfs/server/ref/command-line/tfsservicecontrol-cmd






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














       

      draft saved


      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53194536%2ftfs-prepare-for-shutdown-restart%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote



      accepted










      Nothing with an alert - there might be an extension, or you could build one to do the alerting, but the best you can do is disable the agent pools at the following address:



      https://[my].visualstudio.com/_settings/agentpools


      Agent Pools



      This will stop the builds agents from queuing new builds in the pipeline until you re-enable them.






      share|improve this answer

























        up vote
        2
        down vote



        accepted










        Nothing with an alert - there might be an extension, or you could build one to do the alerting, but the best you can do is disable the agent pools at the following address:



        https://[my].visualstudio.com/_settings/agentpools


        Agent Pools



        This will stop the builds agents from queuing new builds in the pipeline until you re-enable them.






        share|improve this answer























          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          Nothing with an alert - there might be an extension, or you could build one to do the alerting, but the best you can do is disable the agent pools at the following address:



          https://[my].visualstudio.com/_settings/agentpools


          Agent Pools



          This will stop the builds agents from queuing new builds in the pipeline until you re-enable them.






          share|improve this answer












          Nothing with an alert - there might be an extension, or you could build one to do the alerting, but the best you can do is disable the agent pools at the following address:



          https://[my].visualstudio.com/_settings/agentpools


          Agent Pools



          This will stop the builds agents from queuing new builds in the pipeline until you re-enable them.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 7 at 17:38









          DaveShaw

          39.3k1088124




          39.3k1088124
























              up vote
              0
              down vote













              On the application tier call TFSServiceControl quesce. The documentation for the command is https://docs.microsoft.com/en-us/tfs/server/ref/command-line/tfsservicecontrol-cmd






              share|improve this answer



























                up vote
                0
                down vote













                On the application tier call TFSServiceControl quesce. The documentation for the command is https://docs.microsoft.com/en-us/tfs/server/ref/command-line/tfsservicecontrol-cmd






                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  On the application tier call TFSServiceControl quesce. The documentation for the command is https://docs.microsoft.com/en-us/tfs/server/ref/command-line/tfsservicecontrol-cmd






                  share|improve this answer














                  On the application tier call TFSServiceControl quesce. The documentation for the command is https://docs.microsoft.com/en-us/tfs/server/ref/command-line/tfsservicecontrol-cmd







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 11 at 0:07

























                  answered Nov 10 at 23:51









                  nschonni

                  1,8731626




                  1,8731626






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53194536%2ftfs-prepare-for-shutdown-restart%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Florida Star v. B. J. F.

                      Danny Elfman

                      Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues