Skip to content

Commit

Permalink
Bug 1302529 - Make pulse ingestion tasks retryable
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Dawson committed Sep 13, 2016
1 parent 2b3ebbc commit 5408342
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions treeherder/etl/tasks/pulse_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
This module contains tasks related to pulse job ingestion
"""
import newrelic.agent
from celery import task

from treeherder.etl.job_loader import JobLoader
from treeherder.etl.resultset_loader import ResultsetLoader
from treeherder.workers.task import retryable_task


@task(name='store-pulse-jobs')
@retryable_task(name='store-pulse-jobs', max_retries=10)
def store_pulse_jobs(job_list, exchange, routing_key):
"""
Fetches the jobs pending from pulse exchanges and loads them.
Expand All @@ -19,7 +19,7 @@ def store_pulse_jobs(job_list, exchange, routing_key):
JobLoader().process_job_list(job_list)


@task(name='store-pulse-resultsets')
@retryable_task(name='store-pulse-resultsets', max_retries=10)
def store_pulse_resultsets(body, exchange, routing_key):
"""
Fetches the resultsets pending from pulse exchanges and loads them.
Expand Down

0 comments on commit 5408342

Please sign in to comment.