# Schedule recurring tasks

Company → Settings → Scheduled Tasks is where you set recurring automations to run on your workspace on a cron-style schedule, with a run history per task. Today the picker offers two tasks — Generate Staff Recons and Generate Pilot Recons.

Source: https://help.pigi.io/guides/company-setup/notifications/scheduled-tasks

## Quick answers

**Where are scheduled tasks?**
Company → Settings → **Scheduled Tasks**, at
/school/admin/company/settings/scheduled-tasks. Press **New task** to add one.

**Which tasks can I schedule for my company?**
Two: **Generate Staff Recons** and **Generate Pilot Recons**. The **Task** dropdown lists
exactly what is schedulable — if something is not in that list, it is not schedulable from
this screen.

**Can I schedule when notifications go out?**
No. Notification templates fire on their trigger events, not on a schedule. Reminder-style
sends (review requests, overdue-invoice reminders, contract chasers) run on PiGi's
platform-wide schedules, not from this screen.

**How do I set what time a task runs?**
When adding or editing a task, set **Frequency** (Hourly, Daily, Weekly, Monthly) and
**Run At** (a time picker). Weekly also asks for **Day of week**; Monthly asks for **Day of
Month** (1–28).

**How do I check whether a scheduled task ran?**
Each card shows a last-run line: "Never run", "Last run succeeded · 2 hours ago" or "Last
run failed · …". Click the clock/history icon on the card for the full **Run history**.

**How do I change the order of the task cards?**
Use the chevrons on each card. The order is saved and is display order only — it does not
affect when tasks run.

## What this is

Company → Settings → Scheduled Tasks holds recurring automations for your workspace —
"reports, reminders and reconciliations" as the page puts it. Each task is one card
showing its name, the schedule as a chip (for example "Daily · 06:00"), the outcome of its
last run, and buttons for run history, edit and delete.

## Before you start

- You need the **admin** role.
- Know which recon period you want covered before scheduling a recon task — the task acts
  on the configured period each time it runs.

## Steps

1. Open **Company → Settings → Scheduled Tasks**.
2. Press **New task**. The **Add Scheduled Task** drawer opens.
3. Choose the **Task**.
4. Choose the **Frequency** — Hourly, Daily, Weekly or Monthly.
5. For Weekly, choose the **Day of week**. For Monthly, choose the **Day of Month**.
6. Set **Run At** — the time of day it should run.
7. Optionally add a **Description** explaining what the task does for your team.
8. Save. The task appears as a card reading "Never run" until its first execution.

## Fields

| Field | Required | What to enter |
|---|---|---|
| Task | Yes | Generate Staff Recons or Generate Pilot Recons |
| Frequency | Yes | Hourly, Daily, Weekly or Monthly |
| Day of week | Weekly only | Sunday–Saturday |
| Day of Month | Monthly only | 1–28 |
| Run At | No | Time of day |
| Description | No | Free text for your team |

## Run history

The history dialog lists each dispatch with its status — **pending**, **running**,
**success** or **failed** — plus the result message, a result count where the task reports
one (for example how many recons were created), and the error message on failures.

## Known limitations

- **Two tasks only.** Anything else you might expect to schedule is either event-driven or
  runs on a platform-wide schedule.
- **Day of Month stops at 28** so a monthly task cannot miss a short month.
- **No manual "run now".** Tasks run on their schedule; the history is read-only.
- **No enable/disable switch.** To stop a task, delete it.

## Related

- [Write notification templates](notification-templates.md)
- [Connect Google Calendar](google-calendar.md)
