Skip to content

Tasks

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:

Terminal window
GET /tasks

Example:

Terminal window
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:

Terminal window
DELETE /tasks/{task_name}

Example:

Terminal window
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
  • Cancel Stuck Tasks - Remove tasks that appear frozen or taking too long
  • Plan Large Imports - Schedule big data loads during low-usage periods
  • Regular Cleanup - Cancel completed or failed tasks to keep the queue clean

Objects > Index multiple objects

Batch import functionality in Tallyfy Answers allows efficient indexing of multiple objects simultaneously using JSON-formatted data with background task processing for large collections.

Answers > Collections

Tallyfy Answers collections are organizational structures that function like database tables to group related objects together while providing dynamic schema detection searchability and complete management capabilities for efficient data organization and retrieval.

Answers > Objects

Objects in Tallyfy Answers are fundamental JSON-formatted data records that belong to collections and can be indexed retrieved and searched with flexible schemas that automatically detect properties and support both custom and auto-generated unique identifiers.

Overview

Tallyfy Answers is a next-generation search solution that combines advanced AI technology with intelligent document understanding for semantic search capabilities.