From f914955d0b4954c386b139caa7117bc4aefd3144 Mon Sep 17 00:00:00 2001 From: Meredith Date: Fri, 5 Jul 2019 11:16:58 -0700 Subject: [PATCH] enable testing for all orgs --- src/sentry/tasks/post_process.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/sentry/tasks/post_process.py b/src/sentry/tasks/post_process.py index ab840f80f444..5f7e0f01a5cd 100644 --- a/src/sentry/tasks/post_process.py +++ b/src/sentry/tasks/post_process.py @@ -63,12 +63,7 @@ def _should_send_error_created_hooks(project): if random.random() >= options.get('post-process.error-hook-sample-rate'): return False - org = Organization.objects.get_from_cache(id=project.organization_id) - result = ServiceHook.objects.filter( - organization_id=org.id, - ).extra(where=["events @> '{error.created}'"]).exists() - - return result + return True cache_key = u'servicehooks-error-created:1:{}'.format(project.id) result = cache.get(cache_key)