From 89229a8f2c75ab44ea5b6142ed0acd892cfb64e2 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 18 Jan 2017 11:22:07 -0500 Subject: [PATCH] Don't publish registry events to Redis for robots The tutorial can only be used by users, so no need to publish for robots, which can cause issues in pulling for builders and other prod mechanisms if Redis is being finicky --- endpoints/trackhelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/trackhelper.py b/endpoints/trackhelper.py index f1bc708e5..5c336643c 100644 --- a/endpoints/trackhelper.py +++ b/endpoints/trackhelper.py @@ -65,7 +65,7 @@ def track_and_log(event_name, repo_obj, analytics_name=None, analytics_sample=1, # Publish the user event (if applicable) logger.debug('Checking publishing %s to the user events system', event_name) - if authenticated_user: + if authenticated_user and not authenticated_user.robot: logger.debug('Publishing %s to the user events system', event_name) user_event_data = { 'action': event_name,