How to clear off all resource checks in concourse











up vote
0
down vote

favorite












I had a resource that kept triggering every few minutes and it created a queue of hundreds of pending jobs. I want to clear off all the old resource versions so that it stops trying to start new jobs. How can I do that without deleting and recreating the pipeline or impacting any other active pipelines?










share|improve this question


























    up vote
    0
    down vote

    favorite












    I had a resource that kept triggering every few minutes and it created a queue of hundreds of pending jobs. I want to clear off all the old resource versions so that it stops trying to start new jobs. How can I do that without deleting and recreating the pipeline or impacting any other active pipelines?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I had a resource that kept triggering every few minutes and it created a queue of hundreds of pending jobs. I want to clear off all the old resource versions so that it stops trying to start new jobs. How can I do that without deleting and recreating the pipeline or impacting any other active pipelines?










      share|improve this question













      I had a resource that kept triggering every few minutes and it created a queue of hundreds of pending jobs. I want to clear off all the old resource versions so that it stops trying to start new jobs. How can I do that without deleting and recreating the pipeline or impacting any other active pipelines?







      concourse






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 7 at 18:28









      Alex Cohen

      1,13211740




      1,13211740
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          If I understand correctly you have something like:



          > fly -t vm builds
          id pipeline/job build status
          25 queue-up/queue-up 25 started
          24 queue-up/queue-up 24 started
          23 queue-up/queue-up 23 started
          22 queue-up/queue-up 22 started
          21 queue-up/queue-up 21 started
          20 queue-up/queue-up 20 started
          19 queue-up/queue-up 19 started
          18 queue-up/queue-up 18 started
          17 queue-up/queue-up 17 succeeded


          where maybe some of the builds are pending instead than started.



          There is no way to clear off the old resource versions without deleting the pipeline. On the other hand, you can always abort all or some of the builds:



          > for i in (seq 24 18); fly -t vm abort-build --build $i; end
          build successfully aborted
          build successfully aborted
          build successfully aborted
          build successfully aborted
          build successfully aborted
          build successfully aborted
          build successfully aborted

          > fly -t vm builds
          id pipeline/job build status
          25 queue-up/queue-up 25 started
          24 queue-up/queue-up 24 aborted
          23 queue-up/queue-up 23 aborted
          22 queue-up/queue-up 22 aborted
          21 queue-up/queue-up 21 aborted
          20 queue-up/queue-up 20 aborted
          19 queue-up/queue-up 19 aborted
          18 queue-up/queue-up 18 aborted
          17 queue-up/queue-up 17 succeeded





          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%2f53195609%2fhow-to-clear-off-all-resource-checks-in-concourse%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            If I understand correctly you have something like:



            > fly -t vm builds
            id pipeline/job build status
            25 queue-up/queue-up 25 started
            24 queue-up/queue-up 24 started
            23 queue-up/queue-up 23 started
            22 queue-up/queue-up 22 started
            21 queue-up/queue-up 21 started
            20 queue-up/queue-up 20 started
            19 queue-up/queue-up 19 started
            18 queue-up/queue-up 18 started
            17 queue-up/queue-up 17 succeeded


            where maybe some of the builds are pending instead than started.



            There is no way to clear off the old resource versions without deleting the pipeline. On the other hand, you can always abort all or some of the builds:



            > for i in (seq 24 18); fly -t vm abort-build --build $i; end
            build successfully aborted
            build successfully aborted
            build successfully aborted
            build successfully aborted
            build successfully aborted
            build successfully aborted
            build successfully aborted

            > fly -t vm builds
            id pipeline/job build status
            25 queue-up/queue-up 25 started
            24 queue-up/queue-up 24 aborted
            23 queue-up/queue-up 23 aborted
            22 queue-up/queue-up 22 aborted
            21 queue-up/queue-up 21 aborted
            20 queue-up/queue-up 20 aborted
            19 queue-up/queue-up 19 aborted
            18 queue-up/queue-up 18 aborted
            17 queue-up/queue-up 17 succeeded





            share|improve this answer

























              up vote
              1
              down vote



              accepted










              If I understand correctly you have something like:



              > fly -t vm builds
              id pipeline/job build status
              25 queue-up/queue-up 25 started
              24 queue-up/queue-up 24 started
              23 queue-up/queue-up 23 started
              22 queue-up/queue-up 22 started
              21 queue-up/queue-up 21 started
              20 queue-up/queue-up 20 started
              19 queue-up/queue-up 19 started
              18 queue-up/queue-up 18 started
              17 queue-up/queue-up 17 succeeded


              where maybe some of the builds are pending instead than started.



              There is no way to clear off the old resource versions without deleting the pipeline. On the other hand, you can always abort all or some of the builds:



              > for i in (seq 24 18); fly -t vm abort-build --build $i; end
              build successfully aborted
              build successfully aborted
              build successfully aborted
              build successfully aborted
              build successfully aborted
              build successfully aborted
              build successfully aborted

              > fly -t vm builds
              id pipeline/job build status
              25 queue-up/queue-up 25 started
              24 queue-up/queue-up 24 aborted
              23 queue-up/queue-up 23 aborted
              22 queue-up/queue-up 22 aborted
              21 queue-up/queue-up 21 aborted
              20 queue-up/queue-up 20 aborted
              19 queue-up/queue-up 19 aborted
              18 queue-up/queue-up 18 aborted
              17 queue-up/queue-up 17 succeeded





              share|improve this answer























                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                If I understand correctly you have something like:



                > fly -t vm builds
                id pipeline/job build status
                25 queue-up/queue-up 25 started
                24 queue-up/queue-up 24 started
                23 queue-up/queue-up 23 started
                22 queue-up/queue-up 22 started
                21 queue-up/queue-up 21 started
                20 queue-up/queue-up 20 started
                19 queue-up/queue-up 19 started
                18 queue-up/queue-up 18 started
                17 queue-up/queue-up 17 succeeded


                where maybe some of the builds are pending instead than started.



                There is no way to clear off the old resource versions without deleting the pipeline. On the other hand, you can always abort all or some of the builds:



                > for i in (seq 24 18); fly -t vm abort-build --build $i; end
                build successfully aborted
                build successfully aborted
                build successfully aborted
                build successfully aborted
                build successfully aborted
                build successfully aborted
                build successfully aborted

                > fly -t vm builds
                id pipeline/job build status
                25 queue-up/queue-up 25 started
                24 queue-up/queue-up 24 aborted
                23 queue-up/queue-up 23 aborted
                22 queue-up/queue-up 22 aborted
                21 queue-up/queue-up 21 aborted
                20 queue-up/queue-up 20 aborted
                19 queue-up/queue-up 19 aborted
                18 queue-up/queue-up 18 aborted
                17 queue-up/queue-up 17 succeeded





                share|improve this answer












                If I understand correctly you have something like:



                > fly -t vm builds
                id pipeline/job build status
                25 queue-up/queue-up 25 started
                24 queue-up/queue-up 24 started
                23 queue-up/queue-up 23 started
                22 queue-up/queue-up 22 started
                21 queue-up/queue-up 21 started
                20 queue-up/queue-up 20 started
                19 queue-up/queue-up 19 started
                18 queue-up/queue-up 18 started
                17 queue-up/queue-up 17 succeeded


                where maybe some of the builds are pending instead than started.



                There is no way to clear off the old resource versions without deleting the pipeline. On the other hand, you can always abort all or some of the builds:



                > for i in (seq 24 18); fly -t vm abort-build --build $i; end
                build successfully aborted
                build successfully aborted
                build successfully aborted
                build successfully aborted
                build successfully aborted
                build successfully aborted
                build successfully aborted

                > fly -t vm builds
                id pipeline/job build status
                25 queue-up/queue-up 25 started
                24 queue-up/queue-up 24 aborted
                23 queue-up/queue-up 23 aborted
                22 queue-up/queue-up 22 aborted
                21 queue-up/queue-up 21 aborted
                20 queue-up/queue-up 20 aborted
                19 queue-up/queue-up 19 aborted
                18 queue-up/queue-up 18 aborted
                17 queue-up/queue-up 17 succeeded






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 8 at 20:45









                marco.m

                2,9541634




                2,9541634






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53195609%2fhow-to-clear-off-all-resource-checks-in-concourse%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







                    這個網誌中的熱門文章

                    Hercules Kyvelos

                    Tangent Lines Diagram Along Smooth Curve

                    Yusuf al-Mu'taman ibn Hud