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.
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
View all currently running background tasks:
Example:
curl "https://answers.tallyfy.com/tasks" \
-H "Authorization: Bearer your_api_key"
Stop a specific background task by name:
DELETE /tasks/{task_name}
Example:
curl -X DELETE "https://answers.tallyfy.com/tasks/batch_import_docs" \
-H "Authorization: Bearer your_api_key"
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
Task management is useful for:
Large Imports - Monitor progress of bulk document uploads
System Maintenance - Check status of scheduled operations
Troubleshooting - Cancel stuck or problematic tasks
Resource Management - Prevent system overload by managing concurrent operations
User Experience - Provide progress updates for long-running operations
Monitor Long Operations - Check task status for imports over 1000 documents1
Cancel Stuck Tasks - Remove tasks that appear frozen or taking too long
Plan Large Imports - Schedule big data loads during low-usage periods2
Regular Cleanup - Cancel completed or failed tasks to keep the queue clean
Objects > Index multiple objects
The batch import endpoint lets you index multiple objects into Tallyfy Answers collections…
Answers > Search
Tallyfy Answers search combines AI semantic understanding with traditional keyword matching to…
Answers > Objects
Objects are JSON data records in Tallyfy Answers that belong to collections. They can be…
Answers > Collections
Collections in Tallyfy Answers group similar objects together, like database tables. They…