Remove assertion testing for obsolete output_is_persistent field. refs #3342
[arvados.git] / services / api / script / crunch-dispatch.rb
index bfb0dc16ed211ae5a032702f23b59ac96be536b0..bb7ce7e12dee7efe70ceeff06d506c1c18b23392 100755 (executable)
@@ -17,6 +17,8 @@ if not ($options[:jobs] or $options[:pipelines])
   abort "Nothing to do. Please specify at least one of: --jobs, --pipelines."
 end
 
+ARGV.reject! { |a| a =~ /--jobs|--pipelines/ }
+
 $warned = {}
 $signal = {}
 %w{TERM INT}.each do |sig|
@@ -51,7 +53,7 @@ class Dispatcher
   def refresh_todo
     @todo = []
     if $options[:jobs]
-      @todo = Job.queue.select(&:repository) end
+      @todo = Job.queue.select(&:repository)
     end
     @todo_pipelines = []
     if $options[:pipelines]