---
title: Tasks · Tallyfy Answers
description: Tallyfy Answers processes long-running operations like batch imports in the background without blocking API requests. Monitor task progress and cancel jobs as needed.
lastUpdated: 2026-03-22T00:00:00.000Z
source_url:
  html: https://tallyfy.com/products/answers/tasks/
  md: https://tallyfy.com/products/answers/tasks/index.md
---

## How do background tasks work in Tallyfy Answers?

Tallyfy Answers uses background task processing to handle long-running operations without blocking your API requests. This ensures that large batch imports and data processing jobs don’t cause timeouts or performance issues.

### What are background tasks?

Background tasks in Tallyfy Answers handle:

* **Batch Document Imports** - Processing large collections of documents for indexing
* **Data Processing Jobs** - Converting and analyzing content for search optimization
* **Collection Updates** - Making bulk changes to existing data
* **Maintenance Operations** - System cleanup and optimization tasks

### How do you monitor running tasks?

View all currently running background tasks:

```bash
GET /tasks
```

**Example:**

```bash
curl "https://answers.tallyfy.com/tasks" \
  -H "Authorization: Bearer your_api_key"
```

### How do you cancel a running task?

Stop a specific background task by name:

```bash
DELETE /tasks/{task_name}
```

**Example:**

```bash
curl -X DELETE "https://answers.tallyfy.com/tasks/batch_import_docs" \
  -H "Authorization: Bearer your_api_key"
```

### What task information is available?

When you list running tasks, you’ll see:

* **Task Name** - Unique identifier for the background operation
* **Status** - Current state of the task (running, queued, completed)
* **Progress** - How much of the task has been completed
* **Start Time** - When the task began processing
* **Estimated Completion** - Predicted time remaining

### When should you use task management?

Task management is useful for:

1. **Large Imports** - Monitor progress of bulk document uploads
2. **System Maintenance** - Check status of scheduled operations
3. **Troubleshooting** - Cancel stuck or problematic tasks
4. **Resource Management** - Prevent system overload by managing concurrent operations
5. **User Experience** - Provide progress updates for long-running operations

### What are best practices for task management?

* **Monitor Long Operations** - Check task status for imports over 1000 documents[1](#user-content-fn-1)
* **Cancel Stuck Tasks** - Remove tasks that appear frozen or taking too long
* **Plan Large Imports** - Schedule big data loads during low-usage periods[2](#user-content-fn-2)
* **Regular Cleanup** - Cancel completed or failed tasks to keep the queue clean

## Related articles

[**Objects > Index multiple objects**](https://tallyfy.com/products/answers/objects/index-multiple-objects/)

The batch import endpoint lets you index multiple objects into Tallyfy Answers collections…

[**Answers > Search**](https://tallyfy.com/products/answers/search/)

Tallyfy Answers search combines AI semantic understanding with traditional keyword matching to…

[**Answers > Objects**](https://tallyfy.com/products/answers/objects/)

Objects are JSON data records in Tallyfy Answers that belong to collections. They can be…

[**Answers > Collections**](https://tallyfy.com/products/answers/collections/)

Collections in Tallyfy Answers group similar objects together, like database tables. They…

## Footnotes

1. Processing time varies: \~5-10 mins per 1000 docs depending on content size and complexity [↩](#user-content-fnref-1)

2. Typically weekends or 2-6 AM in your org’s primary timezone for optimal performance [↩](#user-content-fnref-2)

## Was this helpful?
