Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / models / job.rb
index 346aef35d27b835fd54a018bfd6ce05ae83de0d9..7c55d9e857cfa89a9c448d3c77ccda829b747449 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class Job < ArvadosBase
   def self.goes_in_projects?
     true
@@ -43,7 +47,7 @@ class Job < ArvadosBase
   end
 
   def stderr_log_query(limit=nil)
-    query = Log.where(object_uuid: self.uuid).order("created_at DESC")
+    query = Log.where(object_uuid: self.uuid).order("created_at DESC").with_count('none')
     query = query.limit(limit) if limit
     query
   end