Skip to main content
Version: FCP 25.11

Submit Tasks Using Task Templates

You can configure task templates in advance and use them to submit tasks to the cluster, improving efficiency. This guide explains how to create a task template and submit a task using that template.

Prerequisites

Create a Task Template

  1. In the left sidebar, open the Task Templates page.

  2. Click New and add a task template using the example below. For a full explanation of template syntax, see Task Template Overview.

    # Display name of the task template
    Name: RunCommand
    Definition:
    parameters:
    - name: param1
    display: runcommand
    description: Description
    type: STRING
    required: true
    usage: SCRIPT
    visibility: true
    outputs:
    - path: testrun.txt
    type: text
    script: |-
    #!/bin/bash
    {{ param1 }} >> a.txt

    Keep other settings as default.

  3. Click Submit.

Submit a Task Using the Template

  1. On the home page under Quick Navigation, click New Task.
  2. Select the RunCommand template created in the previous step.
  3. On the parameter input page, enter a command in runcommand (for example, hostname). In the cluster list, select a running Fsched cluster.
  4. Click Submit.
  5. Go to Compute -> Application Center -> Task Management to check task status.

View Task Output

In Compute -> Application Center -> Task Management, locate the task you submitted, open the task details page, and click the output file a.txt to view the result.