terraref / computing-pipeline

Pipeline to Extract Plant Phenotypes from Reference Data
BSD 3-Clause "New" or "Revised" License
21 stars 13 forks source link

Updates to traitviz app #566

Closed max-zilla closed 5 years ago

max-zilla commented 5 years ago

The cron job doesn't currently refresh RData cache properly in traitviz app, and in discussions with @robkooper we determined that having such a cron job is contrary to docker's "single thread" model per container.

Suggested solution:

max-zilla commented 5 years ago

might be easier to just use cron job in kubernetes - trigger one of these "jobs" periodically

dlebauer commented 5 years ago

can remove lines ~ 12-23 in app.R https://github.com/terraref/traitvis-webapp/pull/18/files#diff-1e678274602e250345bb25d52e7c2d76R12 that set up cron from within R. Can also probably remove cron dependencies in R and OS

robkooper commented 5 years ago

Need some logic to know when to refresh the data from disk. Also should write to a a tempfile in same folder then move to final landing spot to prevent your app from loading half a file.