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)