Log when daily and hourly tasks start

This commit is contained in:
Tanner Collin 2020-02-10 09:15:14 +00:00
parent 67c1d480df
commit ae6f71a236
3 changed files with 5 additions and 1 deletions

View File

@ -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()

View File

@ -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()

View File

@ -125,7 +125,7 @@ export function Home(props) {
})
.catch(err => {
console.log(err);
setUserCache(null);
setStats(false);
});
}, []);