As per the documentation when I dont pass in the max_age key to the API request, the api should ideally start a new execution task and return me the execution job id. which i can futher pass to the API /api/jobs/<job_id>.
However, making the first POST request to /api/queries/{query-id}/results the Redash API without the max_age key, I directly get the query results almost instantly. As per the documentation i believe it should return me with an execution job id.
Is there any thing I am missing inorder to get the execution jobid ?
yes, you need to send the parameter in the body and not in the query string itself.
hey @k4s1m, can we change the text of the api user guide?
" If max_age is omitted or 0 a new execution will begin and a query execution task (job) will be returned"
it says if we omit the max_age parameter in the request a new task id will be returned, but actually the api does require us to pass in max_age=0 for it to return task id.
also, my query is answered. we can mark this as solved.
1 Like
Login or sign up disabled while the site is in read only mode