Query task result
Query the status and result of an image editing task.
Polling strategy
- Submit a request through Create task and get a
task_id. - Poll every 10 seconds until
task_statusisSUCCEEDEDorFAILED. - After the task succeeds,
resultscontains the image download URL.
Notes
- URL expiry: Image URLs expire after 24 hours. Download the results promptly.
- Status flow:
PENDING->RUNNING->SUCCEEDEDorFAILED. - Other statuses:
CANCELED(the task was canceled) andUNKNOWN(thetask_idis invalid or expired). task_idexpiry: Atask_idis valid for 24 hours. After that, you cannot query the task status or result.- Avoid duplicate submissions: Poll for the result instead of resubmitting the request.