Documentation

Retry failed Kapacitor Flux tasks

Use the kapacitor flux task retry-failed command to retry failed Kapacitor Flux task runs. Provide the following flags:

  • -i, --id: task ID
  • --before: Retry failed runs that occurred before this time (RFC3339 timestamp)
  • --after: Retry failed runs that occurred after this time (RFC3339 timestamp)
  • --dry-run: Output information about runs that would be retried without retrying the failed runs.
  • --task-limit: Limit the number of tasks to retry failed runs for (default: 100)
  • --run-limit: Limit the number of failed runs to retry per task (default: 100)

Rerun failed tasks with the Kapacitor API

The kapacitor flux task retry-failed command is a convenience command that identifies failed task runs and attempts to run them again. The Kapacitor API doesn’t provide a single endpoint for this functionality, but this process can be accomplished through a series of API calls. For more information, see Manage Flux task runs.

Examples

Retry failed Flux task runs for all tasks
kapacitor flux task retry-failed
Retry failed Flux task runs for a specific task
kapacitor flux task retry-failed --id 000x00xX0xXXx00
Retry Flux task runs that failed in a specific time range
kapacitor flux task retry-failed \
  --after 2021-01-01T00:00:00Z \
  --before 2021-01-31T00:00:00Z
View information about failed runs that would be executed
kapacitor flux task retry-failed --dry-run
Limit the number of tasks to retry failed runs for
kapacitor flux task retry-failed --task-limit 10
Limit the number of failed runs to retry for each task
kapacitor flux task retry-failed --run-limit 10

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 v3 enhancements and InfluxDB Clustered is now generally available

New capabilities, including faster query performance and management tooling advance the InfluxDB v3 product line. InfluxDB Clustered is now generally available.

InfluxDB v3 performance and features

The InfluxDB v3 product line has seen significant enhancements in query performance and has made new management tooling available. These enhancements include an operational dashboard to monitor the health of your InfluxDB cluster, single sign-on (SSO) support in InfluxDB Cloud Dedicated, and new management APIs for tokens and databases.

Learn about the new v3 enhancements


InfluxDB Clustered general availability

InfluxDB Clustered is now generally available and gives you the power of InfluxDB v3 in your self-managed stack.

Talk to us about InfluxDB Clustered