Skip to content

Commit

Permalink
gencache: fix management command
Browse files Browse the repository at this point in the history
Took 5 minutes
  • Loading branch information
ILW8 authored and zipy124 committed Mar 2, 2024
1 parent b6170b4 commit 3139129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -1,4 +1,4 @@
from timetable.tasks import update_gencache
from timetable.tasks import update_gencache_celery

from django.core.management.base import BaseCommand

Expand All @@ -16,4 +16,4 @@ def add_arguments(self, parser):
)

def handle(self, *args, **options):
update_gencache(options['skip_run_check']).apply()
update_gencache_celery(options['skip_run_check'])
1 change: 1 addition & 0 deletions backend/uclapi/timetable/tasks.py
Expand Up @@ -280,6 +280,7 @@ def update_gencache(skip_run_check):
print("gencache update job already in progress")
if not skip_run_check:
return
print("Running anyway")

try:
requests.get(os.environ.get("HEALTHCHECK_GENCACHE") + "/start", timeout=5)
Expand Down

0 comments on commit 3139129

Please sign in to comment.