r-lib / revdepcheck

R package reverse dependency checking
https://revdepcheck.r-lib.org
Other
99 stars 31 forks source link

`cloud_status()` should report elapsed time looking at finished time when it is done #312

Open cderv opened 2 years ago

cderv commented 2 years ago

Currently, cloud_status() will report elapsed time by comparing created time and current time when the function is ran / called https://github.com/r-lib/revdepcheck/blob/508e5356ec67d33d1402ae116e03164ce379ebd8/R/cloud.R#L37-L38

When the jobs are done, ETA is passed to done, but the finished time is not used. The new API allow to have this information https://github.com/rstudio/revdepcheck-cloud#monitor-your-job

I think this value could be used to get in cloud_status() the correct elapsed time.