[ARVADOS] updated: f82e5b3b99808ca1b95b9cc55655dd885d5e491f

git at public.curoverse.com git at public.curoverse.com
Thu Jun 26 14:41:56 EDT 2014


Summary of changes:
 services/api/script/crunch-dispatch.rb | 4 ++++
 1 file changed, 4 insertions(+)

       via  f82e5b3b99808ca1b95b9cc55655dd885d5e491f (commit)
      from  92aeef019a0c161d5989ffa581f56ba83b887c51 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit f82e5b3b99808ca1b95b9cc55655dd885d5e491f
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Jun 26 14:41:49 2014 -0400

    :none dispatcher only runs one job at a time.

diff --git a/services/api/script/crunch-dispatch.rb b/services/api/script/crunch-dispatch.rb
index 843fc0d..b1c0e7d 100755
--- a/services/api/script/crunch-dispatch.rb
+++ b/services/api/script/crunch-dispatch.rb
@@ -166,6 +166,10 @@ class Dispatcher
       cmd_args = nil
       case Server::Application.config.crunch_job_wrapper
       when :none
+        if @running.size > 0
+            # Don't run more than one at a time.
+            return
+        end
         cmd_args = []
       when :slurm_immediate
         nodelist = nodes_available_for_job(job)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list