> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Tasks

Tasks are designed to create dedicated endpoints for the provided official models or for custom models derived from the artifacts you have built.

## View Tasks

1. Click "Resources Overview" in the upper right corner of the menu.

   <img src="https://mintcdn.com/gmicloud/_02um5jAPua_N2Qo/assets/image-20250320142338452.png?fit=max&auto=format&n=_02um5jAPua_N2Qo&q=85&s=ab301f8f3df3f40f514f61c591472d27" alt="image-20250320142338452" width="1892" height="140" data-path="assets/image-20250320142338452.png" />

2. Click on "Tasks" in the left-hand menu.You can view tasks dashboard.

   <img src="https://mintcdn.com/gmicloud/_02um5jAPua_N2Qo/assets/image-20250320142756262.png?fit=max&auto=format&n=_02um5jAPua_N2Qo&q=85&s=f25ffe1f7110146a2f9ca1d1f89cf6d6" alt="image-20250320142756262" width="1804" height="902" data-path="assets/image-20250320142756262.png" />

* **Name**: Task name.

* **Artifact**: Task created from which artifact.

* **Spec**: One replica required resources specification.

* **Access**: Service - dedicated endpoint URL

  ​        Dashboard - monitor task deployment

* **Schedule**: Task's scheduling, One-off or daily.

* **Created**: Task created time

* **Status**:\
  ​           Idle -  The task is not currently running and is waiting for execution. No resources are being used.

  ​           In-queue - The task is waiting in line to be executed.

  ​           Starting - The task is in the process of initializing. Resources are being allocated, and the task is preparing to run.

  ​           Running -  The task is currently executing. Resources are actively being used to perform the task.

  ​           Need Stop - The task is about to be terminated.

* **Actions**:  Click button <img src="https://mintcdn.com/gmicloud/_02um5jAPua_N2Qo/assets/image-20250320144748075.png?fit=max&auto=format&n=_02um5jAPua_N2Qo&q=85&s=2179b5e4e76545760dfd7727df714228" alt="image-20250320144748075" style={{ width: '3%', height: 'auto' }} width="62" height="64" data-path="assets/image-20250320144748075.png" /> to deactive the running task.

  ​                 Click button <img src="https://mintcdn.com/gmicloud/_02um5jAPua_N2Qo/assets/image-20250320145006225.png?fit=max&auto=format&n=_02um5jAPua_N2Qo&q=85&s=b90df818588394b693a630824ea3777d" alt="image-20250320145006225" style={{ width: '3%', height: 'auto' }} width="64" height="64" data-path="assets/image-20250320145006225.png" />  to active the idle task.

  ​                 Click Edit menu to edit the task.

  ​                 Click Archive menu to archive the task.

  ​                 <img src="https://mintcdn.com/gmicloud/54j00CxnR0zq3pfi/assets/image-20250320145128252.png?fit=max&auto=format&n=54j00CxnR0zq3pfi&q=85&s=883fce5d459bf03cc66a1d8657976f60" alt="image-20250320145128252" style={{ width: '20%', height: 'auto' }} width="476" height="288" data-path="assets/image-20250320145128252.png" />

4. Click the status tab to review the tasks corresponding to each status.

   <img src="https://mintcdn.com/gmicloud/54j00CxnR0zq3pfi/assets/image-20250320145346198.png?fit=max&auto=format&n=54j00CxnR0zq3pfi&q=85&s=30b3a7a9e20c8f1e6489d51d8b911737" alt="image-20250320145346198" width="2786" height="924" data-path="assets/image-20250320145346198.png" />

## Launch Tasks

1. Click "Launch Task" button to launch task for provided models or customized artifacts.

2. Setting resource

   The resource cannot be edited; click the "Next" button.

   <img src="https://mintcdn.com/gmicloud/_02um5jAPua_N2Qo/assets/image-20250319164015889.png?fit=max&auto=format&n=_02um5jAPua_N2Qo&q=85&s=a05a485a0aba108572f712f7a317aa2a" alt="image-20250319164015889" width="1912" height="902" data-path="assets/image-20250319164015889.png" />

3. Setting and scheduling

   **Task Name**: Define task name.

   **File Path**: Specify the script file name to be executed in the Docker image(without the file extension). Fox example, if the image includes a script named serve.py, enter serve here.

   **Deployment Name**: Specify the deployment name that will be exposed to the Ray cluster by the script. For example, you can use app as the deployment name.

   **Type**: One-off or Daily

   ​          One-off - The task runs once as scheduled time.

   ​          Daily - The task runs at the first scheduled time and can update replica numbers at subsequent daily scheduled times.           This option is designed for recurring, predictable workloads where scaling needs follow a consistent daily pattern.

   **Timezone**: Select the timezone for scheduling.

   **Time**: Select the time for scheduling.

   **Replicas**: Select the Min replicas and Max replicas for schedule.

   <img src="https://mintcdn.com/gmicloud/_02um5jAPua_N2Qo/assets/image-20250319164338359.png?fit=max&auto=format&n=_02um5jAPua_N2Qo&q=85&s=2de7e4349a7b8f8d9ff661f921a55fb4" alt="image-20250319164338359" width="1884" height="952" data-path="assets/image-20250319164338359.png" />

   <img src="https://mintcdn.com/gmicloud/_02um5jAPua_N2Qo/assets/image-20250319165448700.png?fit=max&auto=format&n=_02um5jAPua_N2Qo&q=85&s=5d52addbe5c31947604077c183cbf4a4" alt="image-20250319165448700" width="2246" height="954" data-path="assets/image-20250319165448700.png" />

4. Summary

   Review the information in the summary page.  After confirmation, click the "Launch" button to launch task.

   <img src="https://mintcdn.com/gmicloud/54j00CxnR0zq3pfi/assets/image-20250320145850395.png?fit=max&auto=format&n=54j00CxnR0zq3pfi&q=85&s=ebc4ff8f305feb72ee85740db3d76c6f" alt="image-20250320145850395" width="1796" height="906" data-path="assets/image-20250320145850395.png" />

5. Active the Task

   In the task list, locate the task and then click button <img src="https://mintcdn.com/gmicloud/_02um5jAPua_N2Qo/assets/image-20250320145006225.png?fit=max&auto=format&n=_02um5jAPua_N2Qo&q=85&s=b90df818588394b693a630824ea3777d" alt="image-20250320145006225" style={{ width: '3%', height: 'auto' }} width="64" height="64" data-path="assets/image-20250320145006225.png" />  to active the idle task.
