Show current workload on the machines page
This commit is contained in:
1 parent
093fe91cf1
commit
8d4554f15a
3 files changed
+9
-2
No files matched your search
+6
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user