devlogquedulaapi
Devlog #3: Publication status polling
After video is transferred to the TikTok API, publication doesn't happen instantly. The platform processes the file — transcoding, checking against content policies. This takes anywhere from a few seconds to a few minutes.
We needed to solve: how do we know when publication is complete and what the result was?
We implemented polling: periodically querying publication status by ID until we get a final state (success or error). The interval between requests grows exponentially to avoid hammering the API with unnecessary requests.
Important detail: polling must have a maximum wait time. If after N minutes the status still isn't final — that should be treated as an error and the user should be notified.