Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awesome: repeat run on schedule #25

Open
Joe-Heffer-Shef opened this issue Mar 2, 2021 · 3 comments
Open

Awesome: repeat run on schedule #25

Joe-Heffer-Shef opened this issue Mar 2, 2021 · 3 comments
Assignees

Comments

@Joe-Heffer-Shef
Copy link
Contributor

sync every 5 minutes

@Joe-Heffer-Shef Joe-Heffer-Shef self-assigned this Mar 2, 2021
@Joe-Heffer-Shef
Copy link
Contributor Author

Joe-Heffer-Shef commented Mar 2, 2021

Implement using systemd units: a service triggered by a timer
fa51253

@Joe-Heffer-Shef
Copy link
Contributor Author

Joe-Heffer-Shef commented Mar 31, 2021

systemd unit status (use sudo to get debug logs):

Service

sa_cs1jsth@ufdatabridgedev:~$ sudo systemctl status databridge.service
● databridge.service - Data bridge from UFO to Awesome portal
   Loaded: error (Reason: Exec format error)
   Active: inactive (dead)
     Docs: https://github.com/rcgsheffield/urban_flows/tree/master/awesome

Mar 09 12:06:46 ufdatabridgedev systemd[1]: /etc/systemd/system/databridge.service:11: Executable path is not absolute: mkdir --parents /home/uflo/logs

Timer

sa_cs1jsth@ufdatabridgedev:~$ sudo systemctl status databridge.timer
● databridge.timer - Data bridge from UFO to Awesome portal
   Loaded: loaded (/etc/systemd/system/databridge.timer; disabled; vendor preset: enabled)
   Active: inactive (dead)
  Trigger: n/a
     Docs: https://github.com/rcgsheffield/urban_flows/tree/master/awesome

Mar 09 02:06:21 ufdatabridgedev systemd[1]: databridge.timer: Refusing to start, unit to trigger not loaded.
Mar 09 02:06:21 ufdatabridgedev systemd[1]: Failed to start Data bridge from UFO to Awesome portal.

@Joe-Heffer-Shef
Copy link
Contributor Author

Joe-Heffer-Shef commented Mar 31, 2021

use absolute mkdir path
e06a873
needs testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant