diff --git a/app/templates/index.html b/app/templates/index.html index 6ebd3c3..f50cbba 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -174,8 +174,8 @@ formattedPath += '-'; } - // Append '.mp4' to the formatted path - let videoPath = `${formattedPath}latest.mp4&t={Date.now()}`; + // Append '.mp4' to the formatted path + cache bust + let videoPath = `${formattedPath}latest.mp4` + "?t=" + Date.now(); let videoPlayer = document.getElementById('video-player'); let videoSource = document.getElementById('video-source'); diff --git a/makefile b/makefile index 8e42780..4afb68c 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ run: build - docker run --rm -ti --name noaa -e HOST_NAME=localhost -p 9021:9021 -p 4200:4200 noaa + docker run --rm -ti --name noaa -e LIGHTNING_CLOUDSPACE_HOST=noaa.clfx.cc -p 9021:9021 -p 4200:4200 noaa build: docker build -t noaa . diff --git a/noaa_animate.py b/noaa_animate.py index 5ca1e2e..d42af54 100644 --- a/noaa_animate.py +++ b/noaa_animate.py @@ -10,7 +10,6 @@ import numpy as np from moviepy.editor import ImageSequenceClip from PIL import Image from prefect import flow, task -from prefect.task_runners import ConcurrentTaskRunner from prefect.tasks import task_input_hash BASE_URL = "https://services.swpc.noaa.gov/images/animations/geospace/" @@ -220,7 +219,6 @@ def deploy_name(): retries=0, retry_delay_seconds=1, log_prints=True, - task_runner=ConcurrentTaskRunner(), flow_run_name=None, timeout_seconds=90, ) diff --git a/profiles.default.toml b/profiles.default.toml index 3e054f9..be11d79 100644 --- a/profiles.default.toml +++ b/profiles.default.toml @@ -10,5 +10,5 @@ PREFECT_API_SERVICES_SCHEDULER_INSERT_BATCH_SIZE = 500 PREFECT_API_SERVICES_SCHEDULER_LOOP_SECONDS = 60 PREFECT_API_SERVICES_SCHEDULER_MIN_RUNS = 3 PREFECT_API_SERVICES_SCHEDULER_MAX_RUNS = 100 -PREFECT_API_SERVICES_SCHEDULER_MIN_SCHEDULED_TIME = '0:30:00' -PREFECT_API_SERVICES_SCHEDULER_MAX_SCHEDULED_TIME = '0 days, 8:00:00' +PREFECT_API_SERVICES_SCHEDULER_MIN_SCHEDULED_TIME = '00:30:00' +PREFECT_API_SERVICES_SCHEDULER_MAX_SCHEDULED_TIME = '08:00:00' diff --git a/requirements.txt b/requirements.txt index 1fb8e3c..d7a6a82 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ -prefect==2.17.1 +#prefect==2.17.1 +prefect==3.0.0rc1 Flask==3.0.3 gunicorn==22.0.0 gevent==24.2.1