X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3ef580c47029ff0fbf959b044f29c183f41cb609..e20590d485505f58f7745d74a311ca539c9be940:/apps/workbench/app/models/pipeline_instance.rb diff --git a/apps/workbench/app/models/pipeline_instance.rb b/apps/workbench/app/models/pipeline_instance.rb index 1c14efffa6..d481f41c7e 100644 --- a/apps/workbench/app/models/pipeline_instance.rb +++ b/apps/workbench/app/models/pipeline_instance.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require "arvados/keep" class PipelineInstance < ArvadosBase @@ -123,10 +127,10 @@ class PipelineInstance < ArvadosBase Keep::Locator.parse(loc_s) end if log_pdhs.any? and - Collection.where(portable_data_hash: log_pdhs).limit(1).results.any? + Collection.where(portable_data_hash: log_pdhs).limit(1).with_count("none").results.any? true elsif log_uuids.any? and - Collection.where(uuid: log_uuids).limit(1).results.any? + Collection.where(uuid: log_uuids).limit(1).with_count("none").results.any? true else stderr_log_query(1).results.any?