Log when daily and hourly tasks start
This commit is contained in:
parent
67c1d480df
commit
ae6f71a236
|
@ -1,4 +1,5 @@
|
|||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django.utils.timezone import now
|
||||
from apiserver.api import models, utils, utils_stats
|
||||
|
||||
import time
|
||||
|
@ -17,6 +18,7 @@ class Command(BaseCommand):
|
|||
|
||||
|
||||
def handle(self, *args, **options):
|
||||
self.stdout.write('{} - Beginning daily tasks'.format(str(now())))
|
||||
start = time.time()
|
||||
|
||||
count = self.tally_active_members()
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django.utils.timezone import now
|
||||
from apiserver.api import models, utils, utils_stats
|
||||
|
||||
import time
|
||||
|
@ -12,6 +13,7 @@ class Command(BaseCommand):
|
|||
|
||||
|
||||
def handle(self, *args, **options):
|
||||
self.stdout.write('{} - Beginning hourly tasks'.format(str(now())))
|
||||
start = time.time()
|
||||
|
||||
count = self.generate_stats()
|
||||
|
|
|
@ -125,7 +125,7 @@ export function Home(props) {
|
|||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
setUserCache(null);
|
||||
setStats(false);
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user