Submit new jobs with snakemake when previous ones are not yet finished on SLURM clusterslurm: use any node from nodelistRunning Batch Job on Slurm ClusterSlurm Multiprocessing Python Jobhow to set number of task per node in slurm based on the parameter that I passed it to my program?What does the --ntasks or -n tasks does in SLURM?Using Python subprocess to run SLURM script to submit multiple long jobs to queue and waiting for jobs to finish before continuing python scriptSlurm : cannot allocate resources even when they are availableHow to submit parallel job steps with SLURM?Why does slurm assign more tasks than I asked when I “sbatch” multiple jobs with a .sh file?How to properly define the number of threads for jobs spanning multiple nodes?

What is the offset in a seaplane's hull?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

How to re-create Edward Weson's Pepper No. 30?

How do I create uniquely male characters?

Addon: add submenu

Writing rule which states that two causes for the same superpower is bad writing

Is it legal for company to use my work email to pretend I still work there?

Is it possible to do 50 km distance without any previous training?

If Manufacturer spice model and Datasheet give different values which should I use?

Is it possible to rebuild the bike frame (to make it lighter) by welding aluminum tubes

How to feed LSTM with different input array sizes?

Why can't I see bouncing of a switch on an oscilloscope?

same font throughout bibliography

If two metric spaces are topologically equivalent (homeomorphic) imply that they are complete?

Is the language <p,n> belongs to NP class?

Mathematical cryptic clues

What are these boxed doors outside store fronts in New York?

XeLaTeX and pdfLaTeX ignore hyphenation

How to test if a transaction is standard without spending real money?

Is it possible to make sharp wind that can cut stuff from afar?

Is there really no realistic way for a skeleton monster to move around without magic?

Can a country ban oversea biotechnology research out of an endemic plant that is only found in its territory?

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?



Submit new jobs with snakemake when previous ones are not yet finished on SLURM cluster


slurm: use any node from nodelistRunning Batch Job on Slurm ClusterSlurm Multiprocessing Python Jobhow to set number of task per node in slurm based on the parameter that I passed it to my program?What does the --ntasks or -n tasks does in SLURM?Using Python subprocess to run SLURM script to submit multiple long jobs to queue and waiting for jobs to finish before continuing python scriptSlurm : cannot allocate resources even when they are availableHow to submit parallel job steps with SLURM?Why does slurm assign more tasks than I asked when I “sbatch” multiple jobs with a .sh file?How to properly define the number of threads for jobs spanning multiple nodes?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am running Snakemake on SLURM cluster and I have such a problem: the cluster allows me to submit only a number (around 20) jobs at a time. After running snakemake.sh which is:



#!/bin/bash

INPUT_DIR=...

snakemake -j 190 --latency-wait 1000 --cluster-config cluster.json --
cluster "sbatch -A cluster.A -p cluster.p -t cluster.time --
output cluster.output --error cluster.error --nodes cluster.nodes
--ntasks cluster.ntasks --cpus-per-task cluster.cpus --mem cluster.mem"


20 jobs are run (not 190) and so I end up waiting while all of the 20 finish up and then rerunning the script. This is not optimal obviously. Lets' say that 15 jobs completed but 5 are still running, is there a way to submit additional 15 somehow?










share|improve this question




























    0















    I am running Snakemake on SLURM cluster and I have such a problem: the cluster allows me to submit only a number (around 20) jobs at a time. After running snakemake.sh which is:



    #!/bin/bash

    INPUT_DIR=...

    snakemake -j 190 --latency-wait 1000 --cluster-config cluster.json --
    cluster "sbatch -A cluster.A -p cluster.p -t cluster.time --
    output cluster.output --error cluster.error --nodes cluster.nodes
    --ntasks cluster.ntasks --cpus-per-task cluster.cpus --mem cluster.mem"


    20 jobs are run (not 190) and so I end up waiting while all of the 20 finish up and then rerunning the script. This is not optimal obviously. Lets' say that 15 jobs completed but 5 are still running, is there a way to submit additional 15 somehow?










    share|improve this question
























      0












      0








      0








      I am running Snakemake on SLURM cluster and I have such a problem: the cluster allows me to submit only a number (around 20) jobs at a time. After running snakemake.sh which is:



      #!/bin/bash

      INPUT_DIR=...

      snakemake -j 190 --latency-wait 1000 --cluster-config cluster.json --
      cluster "sbatch -A cluster.A -p cluster.p -t cluster.time --
      output cluster.output --error cluster.error --nodes cluster.nodes
      --ntasks cluster.ntasks --cpus-per-task cluster.cpus --mem cluster.mem"


      20 jobs are run (not 190) and so I end up waiting while all of the 20 finish up and then rerunning the script. This is not optimal obviously. Lets' say that 15 jobs completed but 5 are still running, is there a way to submit additional 15 somehow?










      share|improve this question














      I am running Snakemake on SLURM cluster and I have such a problem: the cluster allows me to submit only a number (around 20) jobs at a time. After running snakemake.sh which is:



      #!/bin/bash

      INPUT_DIR=...

      snakemake -j 190 --latency-wait 1000 --cluster-config cluster.json --
      cluster "sbatch -A cluster.A -p cluster.p -t cluster.time --
      output cluster.output --error cluster.error --nodes cluster.nodes
      --ntasks cluster.ntasks --cpus-per-task cluster.cpus --mem cluster.mem"


      20 jobs are run (not 190) and so I end up waiting while all of the 20 finish up and then rerunning the script. This is not optimal obviously. Lets' say that 15 jobs completed but 5 are still running, is there a way to submit additional 15 somehow?







      hpc slurm snakemake






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 9 at 3:27









      Nikita VlasenkoNikita Vlasenko

      9271427




      9271427






















          1 Answer
          1






          active

          oldest

          votes


















          1














          A couple of thoughts...:



          • Are you sure that additional jobs can be submitted before previous ones have finished? For example, it may be that downstream jobs require as input the file(s) produced by the previous 20 jobs. This may be the case for a rule that merges files.


          • You say the cluster allows me to submit only a number (around 20) jobs at a time. Maybe check that the issue is with the cluster rather than with snakemake. Try submitting a bunch of dummy jobs and see if slurm accepts them in the queue,


          Like (not tested, just get the idea):



          for i in 1..30
          do
          sbatch --wrap "sleep 30 && touch test$i.tmp"
          done





          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',
            autoActivateHeartbeat: false,
            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%2f55073702%2fsubmit-new-jobs-with-snakemake-when-previous-ones-are-not-yet-finished-on-slurm%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









            1














            A couple of thoughts...:



            • Are you sure that additional jobs can be submitted before previous ones have finished? For example, it may be that downstream jobs require as input the file(s) produced by the previous 20 jobs. This may be the case for a rule that merges files.


            • You say the cluster allows me to submit only a number (around 20) jobs at a time. Maybe check that the issue is with the cluster rather than with snakemake. Try submitting a bunch of dummy jobs and see if slurm accepts them in the queue,


            Like (not tested, just get the idea):



            for i in 1..30
            do
            sbatch --wrap "sleep 30 && touch test$i.tmp"
            done





            share|improve this answer



























              1














              A couple of thoughts...:



              • Are you sure that additional jobs can be submitted before previous ones have finished? For example, it may be that downstream jobs require as input the file(s) produced by the previous 20 jobs. This may be the case for a rule that merges files.


              • You say the cluster allows me to submit only a number (around 20) jobs at a time. Maybe check that the issue is with the cluster rather than with snakemake. Try submitting a bunch of dummy jobs and see if slurm accepts them in the queue,


              Like (not tested, just get the idea):



              for i in 1..30
              do
              sbatch --wrap "sleep 30 && touch test$i.tmp"
              done





              share|improve this answer

























                1












                1








                1







                A couple of thoughts...:



                • Are you sure that additional jobs can be submitted before previous ones have finished? For example, it may be that downstream jobs require as input the file(s) produced by the previous 20 jobs. This may be the case for a rule that merges files.


                • You say the cluster allows me to submit only a number (around 20) jobs at a time. Maybe check that the issue is with the cluster rather than with snakemake. Try submitting a bunch of dummy jobs and see if slurm accepts them in the queue,


                Like (not tested, just get the idea):



                for i in 1..30
                do
                sbatch --wrap "sleep 30 && touch test$i.tmp"
                done





                share|improve this answer













                A couple of thoughts...:



                • Are you sure that additional jobs can be submitted before previous ones have finished? For example, it may be that downstream jobs require as input the file(s) produced by the previous 20 jobs. This may be the case for a rule that merges files.


                • You say the cluster allows me to submit only a number (around 20) jobs at a time. Maybe check that the issue is with the cluster rather than with snakemake. Try submitting a bunch of dummy jobs and see if slurm accepts them in the queue,


                Like (not tested, just get the idea):



                for i in 1..30
                do
                sbatch --wrap "sleep 30 && touch test$i.tmp"
                done






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 10 at 8:44









                darioberdariober

                1,1411222




                1,1411222





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55073702%2fsubmit-new-jobs-with-snakemake-when-previous-ones-are-not-yet-finished-on-slurm%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

                    Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

                    Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

                    2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived