OHDSI / ROhdsiWebApi

An R package for interfacing with a WebAPI instance
https://ohdsi.github.io/ROhdsiWebApi
10 stars 17 forks source link

Make more fault tolerant #192

Open gowthamrao opened 3 years ago

gowthamrao commented 3 years ago
Found 7 generations for Characterization of which 100.0% had a status = 'COMPLETED'
Found 7 (100.0% of 7 result generations) to have configured source key in WebApi. Results will be retrieved for this subset.
   Retrieving results for Characterization id:2765
   Retrieving results for Characterization id:2743
   Retrieving results for Characterization id:2742
   Retrieving results for Characterization id:2741
   Retrieving results for Characterization id:2714
Error: http error 500: Internal server error.
   The server encountered a problem when trying to fulfill this request.
azimov commented 3 years ago

This could be wrapped in try catch blocks for each request to perform a Characterization. When one fails the user should be presented with a helpful message but return results for the jobs that completed successfully.