1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-09 20:58:35 +03:00

small fix

This commit is contained in:
Adolfo Gómez García 2015-01-13 05:48:59 +01:00
parent c491dc78ab
commit ddd8df3b26

View File

@ -77,7 +77,7 @@ class ServiceCacheUpdater(Job):
DeployedService.objects.update()
# We start filtering out the deployed services that do not need caching at all.
whichNeedsCaching = DeployedService.objects.filter(Q(initial_srvs__gt=0) | Q(cache_l1_srvs__gt=0)).filter(max_srvs__gt=0, state=State.ACTIVE,
service__provider__maintenance_mode=False)
service__provider__maintenance_mode=False)[:]
# We will get the one that proportionally needs more cache
servicesPools = []