Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing failure report task #4050

Merged
merged 1 commit into from
Aug 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions redash/tasks/failure_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def comment_for(failure):

@celery.task(name="redash.tasks.send_aggregated_errors")
def send_aggregated_errors():
for key in redis_connection.scan_iter(key("*")):
user_id = re.search(r'\d+', key).group()
for k in redis_connection.scan_iter(key("*")):
user_id = re.search(r'\d+', k).group()
send_failure_report(user_id)


Expand Down
2 changes: 1 addition & 1 deletion tests/tasks/test_failure_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from tests import BaseTestCase
from redash import redis_connection, models, settings
from redash.tasks.failure_report import notify_of_failure, send_failure_report, send_aggregated_errors, key
from redash.tasks.failure_report import notify_of_failure, send_failure_report, key
from redash.utils import json_loads

class TestSendAggregatedErrorsTask(BaseTestCase):
Expand Down