Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F904955
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 29, 6:09 PM
Size
881 B
Mime Type
text/x-diff
Expires
Sun, Aug 31, 6:09 PM (1 d, 5 h)
Engine
blob
Format
Raw Data
Handle
252099
Attached To
rWEBDNS WebDNS (edet4)
View Options
diff --git a/lib/tasks/checks.rake b/lib/tasks/checks.rake
index 28889aa..0c73336 100644
--- a/lib/tasks/checks.rake
+++ b/lib/tasks/checks.rake
@@ -1,16 +1,16 @@
namespace :check do
desc "Find Failing jobs"
task failed_jobs: :environment do
failed = Job.failed.order('id asc').to_a
if failed.any?
domains = failed.map { |j|
j.domain ? "#{j.domain_id}:#{j.zone}" : "nodb:#{j.zone}"
- }
- domains = domains[0,3].join(', ') # Output only the first 3 domains
- puts "1 FailedJobs - WARN - #{failed.size} failed jobs on #{domains.size} domains (#{domains}...)"
+ }.uniq
+ sample = domains[0,3].join(', ') # Output only the first 3 domains
+ puts "1 FailedJobs - WARN - #{failed.size} failed jobs on #{domains.size} domains (#{sample}, ...)"
else
puts "0 FailedJobs - OK - 0 failed jobs"
end
end
end
Event Timeline
Log In to Comment