Documentation

Update a task

This page documents an earlier version of InfluxDB. InfluxDB v2.7 is the latest stable version. View this page in the v2.7 documentation.

Update a task in the InfluxDB UI

Click the Tasks icon in the left navigation to view the lists of tasks.

Click the name of a task to update it.

Update a task Flux script

  1. In the list of tasks, click the Name of the task you want to update.
  2. In the left panel, modify the task options.
  3. In the right panel, modify the task script.
  4. Click Save in the upper right.

Update the status of a task

In the list of tasks, click the toggle to the left of the task you want to activate or inactivate.

Update a task description

  1. In the list of tasks, hover over the name of the task you want to update.
  2. Click the pencil icon .
  3. Click outside of the field or press RETURN to update.

Update a task with the influx CLI

Use the influx task update command to update or change the status of an existing task.

This command requires a task ID, which is available in the output of influx task list.

Update a task Flux script

Pass the file path of your updated Flux script to the influx task update command with the ID of the task you want to update. Modified task options defined in the Flux script are also updated.

# Syntax
influx task update -i <task-id> -f </path/to/updated-task-script>

# Example
influx task update -i 0343698431c35000 -f /tasks/cq-mean-1h.flux

Update the status of a task

Pass the ID of the task you want to update to the influx task update command with the --status flag.

Possible arguments of the --status flag are active or inactive.

# Syntax
influx task update -i <task-id> --status < active | inactive >

# Example
influx task update -i 0343698431c35000 --status inactive

Was this page helpful?

Thank you for your feedback!


Set your InfluxDB URL

Introducing InfluxDB 3.0

The new core of InfluxDB built with Rust and Apache Arrow. Available today in InfluxDB Cloud Dedicated.

Learn more

State of the InfluxDB Cloud Serverless documentation

The new documentation for InfluxDB Cloud Serverless is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.