This topic describes task instances in MaxCompute and the status that a task instance may have throughout its lifecycle.
When you start to run SQL, Spark, or MapReduce tasks in MaxCompute, the tasks are instantiated as instances. The lifecycle of task instances includes two stages: Running and Terminated.
-- Query the status of a task instance. status instance_id; -- Terminate a task instance. After you run the kill command, the status of the task instance changes to Canceled. kill instance_id; -- View the operational logs of a task instance. wait instance_id;
In the preceding commands, instance_id indicates the ID of the task instance that you want to manage. Replace this parameter with the actual instance ID.