Browse Source

updates!

upgrade
Michael Pilosov 6 months ago
parent
commit
fe75f9eb90
  1. 4
      app/templates/index.html
  2. 2
      makefile
  3. 2
      noaa_animate.py
  4. 4
      profiles.default.toml
  5. 3
      requirements.txt

4
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');

2
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 .

2
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,
)

4
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'

3
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

Loading…
Cancel
Save