11590: Clarify "job state" condition in log message.
authorTom Clegg <tom@curoverse.com>
Thu, 18 May 2017 14:26:35 +0000 (10:26 -0400)
committerTom Clegg <tom@curoverse.com>
Thu, 18 May 2017 14:26:35 +0000 (10:26 -0400)
services/api/app/models/job.rb

index 83c99b15bbe0ff440bf301b2027baed13135f89d..5344d45fbc2c089f16f6cc21e52cd1193afbd176 100644 (file)
@@ -254,7 +254,7 @@ class Job < ArvadosModel
     candidates = candidates.where(
       'state = ? or (owner_uuid = ? and state in (?))',
       Job::Complete, current_user.uuid, [Job::Queued, Job::Running])
-    log_reuse_info { "have #{candidates.count} candidates after filtering on job state (either state=Complete, or state=Queued/Running and submitted by current user)" }
+    log_reuse_info { "have #{candidates.count} candidates after filtering on job state ((state=Complete) or (state=Queued/Running and (submitted by current user)))" }
 
     digest = Job.sorted_hash_digest(attrs[:script_parameters])
     candidates = candidates.where('script_parameters_digest = ?', digest)