Documentation

Update a task

Update a task in the InfluxDB UI

  1. In the navigation menu on the left, select Tasks.

  2. Find the task you would like to edit and click the icon located far right of the task name.

  3. Click Edit.

  4. Click Save in the upper right.

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>
  • Copy
  • Fill window
# Example
influx task update -i 0343698431c35000 -f /tasks/cq-mean-1h.flux
  • Copy
  • Fill window

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 >
  • Copy
  • Fill window
# Example
influx task update -i 0343698431c35000 --status inactive
  • Copy
  • Fill window

Update a task with the InfluxDB API

Use the /tasks/TASK_ID InfluxDB API endpoint to update properties of a task.

In your request, pass the task ID and an object that contains the updated key-value pairs. To activate or inactivate a task, set the status property. "status": "inactive" cancels scheduled runs and prevents manual runs of the task. To find the task ID, see how to view tasks.

Once InfluxDB applies the update, it cancels all previously scheduled runs of the task.


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB 3 Core and Enterprise are now in Beta

InfluxDB 3 Core and Enterprise are now available for beta testing, available under MIT or Apache 2 license.

InfluxDB 3 Core is a high-speed, recent-data engine that collects and processes data in real-time, while persisting it to local disk or object storage. InfluxDB 3 Enterprise is a commercial product that builds on Core’s foundation, adding high availability, read replicas, enhanced security, and data compaction for faster queries. A free tier of InfluxDB 3 Enterprise will also be available for at-home, non-commercial use for hobbyists to get the full historical time series database set of capabilities.

For more information, check out: