Python
from gcore import Gcore client = Gcore( api_key="My API Key", ) response = client.streaming.ai_tasks.cancel( "task_id", ) print(response.result)
{ "result": "Task has been cancelled successfully." }
Stopping a previously launched AI-task without waiting for it to be fully completed.
The task will be moved to “REVOKED” status.
Was this page helpful?