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

Handle no new data more elegantly #185

Open
joeHickson opened this issue Feb 1, 2021 · 0 comments
Open

Handle no new data more elegantly #185

joeHickson opened this issue Feb 1, 2021 · 0 comments

Comments

@joeHickson
Copy link
Collaborator

If there's no new data to process the summary data errors

2021-01-31 21:01:47 INFO Data has not been updated since last run. If wanting to run again then remove /home/rstudio/covid-rt-estimates/last-update/colombia.rds
2021-01-31 21:01:47 DEBUG Max date in data - 2021-01-30, last run date from file - 2021-01-30
2021-01-31 21:01:47 DEBUG add stats to output
2021-01-31 21:01:47 WARN simpleWarning in system(paste0("for f in ", location$target_folder, "/*/latest/summary.rds; do git log -n 1 --pretty=format:\"%ad\" --date=iso -- \"$f\" 2>/dev/null; done"), : running command 'for f in subnational/colombia/cases/national/*/latest/summary.rds; do git log -n 1 --pretty=format:"%ad" --date=iso -- "$f" 2>/dev/null; done' had status 128
2021-01-31 21:01:47 WARN simpleWarning in gsub("~m", msg, message, fixed = TRUE): argument 'replacement' has length > 1 and only the first element will be used
2021-01-31 21:01:47 WARN simpleWarning in gsub("~m", msg, message, fixed = TRUE): argument 'replacement' has length > 1 and only the first element will be used
2021-01-31 21:01:47 WARN colombia: simpleWarning in system(paste0("for f in ", location$target_folder, "/*/latest/summary.rds; do git log -n 1 --pretty=format:\"%ad\" --date=iso -- \"$f\" 2>/dev/null; done"), : running command 'for f in subnational/colombia/cases/national/*/latest/summary.rds; do git log -n 1 --pretty=format:"%ad" --date=iso -- "$f" 2>/dev/null; done' had status 128
2021-01-31 21:01:47 DEBUG git not working - try stat
stat: cannot stat 'subnational/colombia/cases/national/*/latest/summary.rds': No such file or directory
2021-01-31 21:01:47 WARN simpleWarning in system(paste0("for f in ", location$target_folder, "/*/latest/summary.rds; do stat -c %y $f; done"), : running command 'for f in subnational/colombia/cases/national/*/latest/summary.rds; do stat -c %y $f; done' had status 1
2021-01-31 21:01:47 WARN simpleWarning in gsub("~m", msg, message, fixed = TRUE): argument 'replacement' has length > 1 and only the first element will be used
2021-01-31 21:01:47 WARN simpleWarning in gsub("~m", msg, message, fixed = TRUE): argument 'replacement' has length > 1 and only the first element will be used
2021-01-31 21:01:48 WARN colombia: simpleWarning in system(paste0("for f in ", location$target_folder, "/*/latest/summary.rds; do stat -c %y $f; done"), : running command 'for f in subnational/colombia/cases/national/*/latest/summary.rds; do stat -c %y $f; done' had status 1

If there's no change there'll be no timing data. Also don't publish.

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