Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1300619
checks.rake
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
Wed, Nov 19, 2:33 PM
Size
512 B
Mime Type
text/plain
Expires
Fri, Nov 21, 2:33 PM (4 h, 20 m)
Engine
blob
Format
Raw Data
Handle
292751
Attached To
rWEBDNS WebDNS (edet4)
checks.rake
View Options
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
}
"
}
.
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