Merge branch '12960-migrate-properties' closes #12960
[arvados.git] / services / api / lib / crunch_dispatch.rb
index ca6e28ba19564d970c7cfdec37801a81f9682181..3cabc1e3ce75842d6e187a7f99ab6a12dd510d84 100644 (file)
@@ -429,8 +429,11 @@ class CrunchDispatch
         i, o, e, t = Open3.popen3(*cmd_args)
       rescue
         $stderr.puts "dispatch: popen3: #{$!}"
-        sleep 1
-        next
+        # This is a dispatch problem like "Too many open files";
+        # retrying another job right away would be futile. Just return
+        # and hope things are better next time, after (at least) a
+        # did_recently() delay.
+        return
       end
 
       $stderr.puts "dispatch: job #{job.uuid}"