Show current workload on the machines page

This commit is contained in:
AndyGrant committed 2018-07-21 20:42:24 -04:00
1 parent 093fe91cf1
commit 8d4554f15a
3 files changed
+9 -2

No files matched your search

+6 -2
View File
@@ -434,8 +434,12 @@ def getWorkload(request):
except: return HttpResponse('Bad Machine')
# Find an active Test to work on
try: test = OpenBench.utils.getWorkload(machine)
except: return HttpResponse('None')
try:
test = OpenBench.utils.getWorkload(machine)
machine.workload = test
machine.save()
except:
return HttpResponse('None')
# Create or fetch the Results
try: result = OpenBench.utils.getResult(machine, test)