> ## Documentation Index
> Fetch the complete documentation index at: https://tradepost.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheduled jobs

> Three hourly jobs and what a delay looks like.

Three jobs run every hour. Nothing triggers them on demand.

| Job                 | Runs | Does                                                                                           |
| ------------------- | ---- | ---------------------------------------------------------------------------------------------- |
| Stalled-trade sweep | :00  | Closes trades past their deadline, frees both sides' goods, posts the notice                   |
| Inventory sweep     | :15  | Removes a deleted account's items, applies deletion windows, frees items stuck on a dead trade |
| Ledger write        | :30  | Writes newly resolved trades to the wiki page                                                  |

The order matters: the stalled-trade sweep resolves trades and queues ledger lines,
the inventory sweep runs once the released goods have settled, and the ledger write
runs last.

## Effects on settings

* Deletion window changes take effect on the next inventory sweep, not on save.
* Ghost window changes never affect open trades; that value is fixed at accept.
* A large subreddit takes several runs for a full inventory pass.
* More trades due than one run handles are picked up the next hour, not dropped.

## If one is late

Nothing is lost and nothing is destructive.

* **Stalled-trade sweep.** Overdue trades stay open and their items stay pending
  until it runs. This is why the ghost window is capped at 20 days: the deadline
  has to land where the sweep can still reach it.
* **Ledger write.** Resolved trades have not reached the wiki yet. The queue holds
  them.
* **Inventory sweep.** Idle items stay past your window, and items stranded on a
  dead trade stay stranded. Both clear on the next run.
