API Stability Short-Term

The assignTasks() GraphQL mutation is used to assign node tasks.

For more information on common node tasks, see the LogScale Logical Architecture page in the Training section.

Syntax

Below is the syntax for the assignTasks() mutation field:

graphql
assignTasks(
      nodeID: integer! 
      tasks: [NodeTaskEnum!]!
   ): [NodeTaskEnum!]!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  assignTasks(nodeID: 1, tasks: [query,storage])
}
Example Responses
Show:
json
{
  "data": {
    "assignTasks": [
      "storage",
      "digest",
      "query"
    ]
  }
}

Given and Returned Datatypes

For nodeID, give the unique identifier of the node to which to assign tasks. NodeTaskEnum has only a few choices from an enumerated list:

Table: AssignSystemRoleToGroupInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 16, 2024
digestboolean  Short-TermIndicates a digest task.
queryboolean  Short-TermRepresents a query task.
storageboolean  Short-TermIndicates a storage task. This choice is deprecated and scheduled to be removed in version 1.185.