Add weekly cron for owners refresh; fix download timeout
- options(timeout = 300) added to update_owners.R — 87.5 MB SCPA file exceeds the 60s default - TODO updated: cron job tested end-to-end 2026-03-09
This commit is contained in:
7
TODO.md
7
TODO.md
@@ -9,10 +9,9 @@
|
|||||||
|
|
||||||
- [ ] Verify SCPA Public.xlsx column structure is stable across downloads
|
- [ ] Verify SCPA Public.xlsx column structure is stable across downloads
|
||||||
- [ ] Delete app from shinyapps.io (account: rob-wiederstein, appId: 14173710)
|
- [ ] Delete app from shinyapps.io (account: rob-wiederstein, appId: 14173710)
|
||||||
- [ ] Add cron job to run `update_owners.R` weekly inside the rstudio container:
|
- [x] Add cron job to run `update_owners.R` weekly inside the rstudio container:
|
||||||
`docker exec rstudio Rscript /home/rstudio/projects/r/stAndrews/data-raw/update_owners.R`
|
Runs every Sunday at 11pm via crontab; restarts standrews_shiny after; logs to ~/standrews_update.log
|
||||||
Note: app must reload `owners.rds` after refresh — either restart container or
|
Tested end-to-end 2026-03-09 — 388 owners written, options(timeout=300) required for 87.5 MB download
|
||||||
make app reactive to file changes
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ library(dplyr)
|
|||||||
library(stringr)
|
library(stringr)
|
||||||
library(sf)
|
library(sf)
|
||||||
|
|
||||||
|
options(timeout = 300)
|
||||||
|
|
||||||
subdivisions <- c(
|
subdivisions <- c(
|
||||||
"8120", "8113", "8171", "8195", "8221",
|
"8120", "8113", "8171", "8195", "8221",
|
||||||
"8163", "8240", "8159", "8149", "8110", "8254", "8215", "8143"
|
"8163", "8240", "8159", "8149", "8110", "8254", "8215", "8143"
|
||||||
|
|||||||
Reference in New Issue
Block a user