Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Commit

Permalink
shipit_pulse_listener: Fix typo in tasks monitoring. (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Abadie authored and garbas committed Aug 3, 2017
1 parent 073fee4 commit f2fcf3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shipit_pulse_listener/shipit_pulse_listener/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
logger = get_logger(__name__)

GROUP_MD = '''
## {}
{:.2f}% of all tasks ({}/{})
Expand Down Expand Up @@ -91,7 +92,7 @@ async def check_task(self):

task_status = status['status']['state']

if task_status in ('failed', 'complete'):
if task_status in ('failed', 'completed', 'exception'):
# Add to report
stat_name = '{}.{}.{}'.format(group_id, hook_id, task_status)
if stat_name not in self.stats:
Expand All @@ -114,7 +115,7 @@ def send_report(self):

# Build markdown
total = sum([len(s) for s in self.stats.values()])
content = '# Pulse listener tasks for the last hour'
content = '# Pulse listener tasks for the last hour\n'
for group_name, tasks in self.stats.items():
nb_tasks = len(tasks)
content += GROUP_MD.format(
Expand Down

0 comments on commit f2fcf3c

Please sign in to comment.