Bulk Archive To History
bulk_archive_to_historyMove all tasks from _lifecycle/archive/ into date-sharded history/ folders, including their reports, in one operation. Use it to flush archived tasks into the new history structure during upgrades or after manual archiving sessions.
Instructions
Migrate all tasks from _lifecycle/archive/ into the deep history archive.
This is a convenience migration tool. It iterates every task in
_lifecycle/archive/ and calls :func:archive_to_history for each
one, moving each task together with its associated reports into
history/YYYY-MM-DD/<task-stem>/.
Useful when:
A project is being upgraded and existing archived tasks need to be moved into the new date-sharded history structure.
You have just finished a manual archiving session and want to flush everything from
_lifecycle/archive/intohistory/in one step.
The history/ directory is created automatically if it does not yet exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done_date | No | Override the shard date (``YYYY-MM-DD``) for **all** migrated tasks. Leave empty to use each task's own ``done_at`` timestamp (falls back to today if missing). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |