---
title: "Check for pending tasks (self-hosted)"
method: POST
path: "/self-hosted/{accountId}/workspace/{workspaceId}/task/{taskId}/check-pending-task"
tags: ["Self-Hosted Runners"]
---

# Check for pending tasks (self-hosted)

`POST /self-hosted/{accountId}/workspace/{workspaceId}/task/{taskId}/check-pending-task`

## Path parameters

- `accountId` string, required
- `workspaceId` string, required
- `taskId` string, required

## Response `200`

No pending tasks exist

- CheckPendingTasksResponse
  - `hasPendingTasks` boolean

## Other responses

- `400` — Bad Request Error
- `404` — Not Found Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
