FLARE-forecast / FLARE-containers

Docker containers to run FLARE forecast
0 stars 2 forks source link

Running FCR Forecasts with crontab with modified entry point #51

Open vahid-dan opened 2 years ago

vahid-dan commented 2 years ago

FCR Forecasts on Jetstream 2.0 need to be running on timer at the moment. While it is possible to run it manually by executing docker run command in the terminal or from a bash script, running the same command or bash script with crontab leads to an error due to --entrypoint parameter in the docker run command. Apparently, crontab changes the path of the --entrypoint causing the command to fail. To make it work, I used a systemd service and timer.