Hi:
When i triger refresh dashboard through api,sometimes the refresh will be failed because the query fails(look log). How can i get the refresh result when refresh is failed so that i can triger refresh again ?
Thanks!
This site is in read only mode. Please continue to browse, but replying, likes,
and other actions are disabled for now.
How are you refreshing the dashboard via the API? If you do it sequentially using the /results
endpoint for each query then the resulting job
will reflect a failed execution via its status code.
Here are the status codes:
// 1 == PENDING (waiting to be executed)
// 2 == STARTED (executing)
// 3 == SUCCESS
// 4 == FAILURE
// 5 == CANCELLED
I via the api “api/jobs/{}” to get the execute result and get the status codes as you shown.
Thank you !