Hey there,
I am trying to launch my Flask app with a supercronic cronjob that runs every hour, but it seems if I use 2 exec cmd values in the litefs.yml
, only the first one will execute. (probably because both are long running tasks), so I can only run one cmd.
My current litefs.yml
’s exec lines are:
exec:
- cmd: "/usr/local/bin/supercronic /opt/venv/crontab"
- cmd: "/opt/venv/bin/gunicorn wsgi:app -b 0.0.0.0:8081"
I’d like to run this cronjob on the same machine that has write access to the SQLite db.
Is there a way to do this easily, or is the only way to do this is via another machine and setting up an nginx proxy to forward internal requests to the primary node for write purposes?
Thanks very much in advance!