---
title: "Background Scheduler"
space: "TIMs INCOTEX Intergration"
url: "https://docs.navari.co.ke/tims-incotex/background-scheduler"
updated: "2026-06-09"
---

In addition to the real-time `on_submit` hook, the integration includes a **Frappe scheduler job** that runs periodically in the background. Its job is to detect and re-process any invoices that:

- Were submitted but not yet filed (i.e., `is_filed` is unchecked)
- Failed to reach INCOTEX at the time of submission

The scheduler provides a safety net for high-volume environments or scenarios where the INCOTEX device experiences intermittent availability. It runs silently without user intervention.



To confirm the scheduler is running, check your bench's scheduled jobs via:

```bash
bench --site {your-site-name} scheduled-jobs
```

