Skip to content
Snippets Groups Projects
Commit 93adff5e authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[backend] Log assigned splits

parent 932d515d
No related branches found
No related tags found
1 merge request!194Scheduler
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
############################################################################### ###############################################################################
import os import os
import logging
logger = logging.getLogger(__name__)
import simplejson import simplejson
from django.http import Http404, HttpResponseRedirect from django.http import Http404, HttpResponseRedirect
...@@ -103,7 +106,9 @@ def scheduler(request): ...@@ -103,7 +106,9 @@ def scheduler(request):
activity = request.GET['activity'] activity = request.GET['activity']
if activity in ('both', 'schedule'): if activity in ('both', 'schedule'):
schedule() splits = schedule()
if splits:
logger.info("Scheduler assigned %d splits", len(splits))
if activity in ('both', 'work'): if activity in ('both', 'work'):
Work()() Work()()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment