---
title: "Check if a task needs to be performed on a server"
method: GET
path: "/api/clusters/{clusterName}/servers/{serverName}/{serverPort}/needs/{taskname}"
tags: ["DatabaseTasks"]
---

# Check if a task needs to be performed on a server

`GET /api/clusters/{clusterName}/servers/{serverName}/{serverPort}/needs/{taskname}`

Checks if a specified task needs to be performed on a server within a cluster.

## Path parameters

- `clusterName` string, required
- `serverName` string, required
- `serverPort` string, required
- `type` 'mysqldump' | 'mydumper' | 'xtrabackup' | 'mariabackup' | 'errorlog' | 'slowquery' | 'sqlerrorlog' | 'auditlog' | 'zfssnapback' | 'optimize' | 'reseedxtrabackup' | 'reseedmariabackup' | 'reseedmysqldump' | 'flashbackxtrabackup' | 'flashbackmariadbackup' | 'flashbackmysqldump' | 'stop' | 'restart' | 'start' | 'printdefault-current' | 'printdefault-dummy' | 'jobs-check' | 'jobs-upgrade', required

## Response `200`

true" or "false

- string

## Other responses

- `500` — Cluster Not Found" or "Server Not Found" or "Error checking task necessity

## Changes

- **2026-07-17** `7465ea0ee21a` — 1 info
  - endpoint added
- **2023-03-31** `b57fc7b9446e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/signal18/apis/untitled-api/changes/api/clusters/:clusterName/servers/:serverName/:serverPort/needs/:taskname/get.md)

---

[API](https://skmtc.dev/signal18/apis/untitled-api.md) · [All operations](https://skmtc.dev/signal18/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/signal18/untitled-api/revisions/7465ea0ee21a/schema)
