English
Tasks & Logs
Tasks and logs are used to track background jobs such as scanning, scraping, and cleanup, with status and execution details.
Purpose
- Observe task state and execution result in one place.
- Locate failed tasks and inspect error context quickly.
- Trace scan/scrape history via log entries.
Entry Paths
- Web:
System Tools->Tasks/Library Logs. - H5:
Storage Managementcard ->Tasks/Library Logs.
Core Flow
- Task list: inspect
All / Running / Completed / Failedstatuses and statistics. - Task types: source scan, metadata scraping, cleanup, AI categorization, and per-book subtitle transcription. Global transcription cards and service setup live in Subtitle Management.
- Failure triage: open failed entries and review root cause and retry hints.
- Log inspection: check scan/scrape event logs in
Library Logs. - AI categorization jobs expose processed count, remaining count, and failed entries; state is restored after refresh.
Repair existing MP3 durations
Use this procedure after installing a server with the duration fix if a book still shows suspicious old values, such as roughly one minute for a long chapter. See Book Management for release status and supported sources. Validate one book first.
The task list displays and controls jobs but has no dedicated chapter-completion creation button. Administrators can use the existing maintenance API. Paths below are relative to the API Base URL, normally /api/v1 for direct access or /app/leelaa-reader/api/v1 through the fnOS gateway.
- Sign in with an administrator account to obtain a token. Open the book editor; its
/library/book/{id}/editaddress contains the book ID. - Send the following request, replacing
123with the book ID and{token}with the administrator token.X-Leelaa-Tokenworks with both direct access and the fnOS gateway.
http
POST {baseUrl}/tasks
X-Leelaa-Token: {token}
Content-Type: application/json
{"type":"generate_chapters","entity_type":"book","entity_id":123}- The response is
201with a task object; itsididentifies the job. Creation does not mean completion. Find the chapter-completion job in the task list, or sendGET {baseUrl}/tasks/{id}with the same authentication header. Wait forstatus: completed, then refresh the book's chapters.
If the task fails, check its error and source-file access permissions. If it completes without changing a duration, review failed items: failed probes preserve existing values, and not every positive value is overwritten. Do not delete source files or reset the database. A normal scan does not guarantee that existing incorrect positive durations will be reprocessed.
This is an administrator maintenance endpoint, outside the stable third-party API contract.
Notes
- Only admins can access tasks and logs.
- If backend services are unavailable, task state cannot be generated or updated.
