Polling vs. Waiting for Webhooks: Handling GET RESULTS
Polling | Waiting for Webhooks |
---|---|
⚡ Get results ASAP | 🕰️ Get results once the job finishes |
⏱️ Request every 30 seconds | 🚫 No polling—wait for webhook |
🚫 Stop when webhook is received | 📡 Webhook sends a real-time update |
🕰️ Used when users expect fast feedback | 📦 Used when users can wait for full results |
🔄 Needs a stop condition | ✅ No need for stop conditions |
❌ Can cause API overload | ⚡ Uses system resources efficiently |
row_count
represents the
number of outputs. You can calculate the progress as % progress = (#output / #input) * 100
.job_uid
from the API response.
finished
, retrieve the data.
get_run()
get_run_results()
warning
status depending on your
implementation.https://api.captaindata.co/v3/jobs/:job_uid/results
as soon as the job starts.GET JOB RESULTS
request to get the full job results.Why not retry? “All Inputs Failed” means the system has determined that no valid inputs exist. Retrying the job will produce the same result, so polling won’t help.
404 Not Found
or Bad Gateway
errors can arise due to incorrect configurations or unstable connections.