Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1904)

Unified Diff: appengine/swarming/server/task_scheduler.py

Issue 2534943002: Upload basic info about completed swarming tasks to event_mon (Closed)
Patch Set: fixes Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/main.py ('k') | appengine/swarming/server/task_scheduler_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/server/task_scheduler.py
diff --git a/appengine/swarming/server/task_scheduler.py b/appengine/swarming/server/task_scheduler.py
index a4366492c8fcf7e5eca6cb8992f8ca977698587b..e00515f9fc8ea7faf2141f07c8287661df49dd2f 100644
--- a/appengine/swarming/server/task_scheduler.py
+++ b/appengine/swarming/server/task_scheduler.py
@@ -19,6 +19,7 @@ from components import datastore_utils
from components import pubsub
from components import utils
+import event_mon_metrics
import ts_mon_metrics
from server import acl
@@ -812,6 +813,7 @@ def bot_update_task(
return None
_update_stats(run_result, bot_id, request, task_completed)
if task_completed:
+ event_mon_metrics.send_task_event(smry)
ts_mon_metrics.update_jobs_completed_metrics(smry)
return run_result.state
« no previous file with comments | « appengine/swarming/main.py ('k') | appengine/swarming/server/task_scheduler_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698