waitSimsResults.Rd
Loop waiting for a dataset to be ready : refresh data information, with a 'delay' between 2 requests. Stop as soon as 'end' is TRUE or at the end of 'duration_max'.
waitSimsResults(env, data_info, delay, duration_max, with_job_report = FALSE)
end Boolean
data_ready Boolean
data_info refreshed data information
job report in case of 'with_job_report' valuing TRUE (job_info information and job_metrics metrics)
message
It is possible to set the survey step between 2 requests ('delay') and the survey total duration ('duration_max').
Possible returned situations at the end of survey :
'end' TRUE, 'data_ready' TRUE : End of process and data ready to be downloaded.
'end' TRUE, 'data_ready' FALSE : End of process but data not ready (will never be ready)
'end' FALSE, 'data_ready' FALSE : Process still running (not finished). In that case you can call 'waitSimsResults' again to continue survey.