# Shifts

In this section you'll configure the plant's shift schedule and learn how shifts provide time context for analysis — how they differ from production schedules and how they are inherited through the asset hierarchy.

::embed-section{src="../../../kanoa-ops/shifts.md" collapsed="true" summary="Reference Materials: Shifts - Manage personnel shifts across your entire enterprise, whether at the plant level or for specific assets."}

:::action[Configure plant shifts]

Using this shift specification:

```text
The plant generally runs a Day Shift from 7:00 AM - 3:00 PM and an Evening Shift from 3:00 PM - 11:00 PM, Monday through Friday.

Manual Packaging Lines have their own Manual Pack Shift from 9:00 AM - 5:00 PM on Thursdays and Fridays.
```

1. Navigate to **Ops → Scheduling → Shifts**.
2. On the `Philadelphia` site, configure **Day Shift**, repeating Monday to Friday.
3. On the `Philadelphia` site, configure **Evening Shift**, repeating Monday to Friday.
4. On `Manual Pack 1`, configure **Manual Pack Shift**, repeating Thursday to Friday.
:::

:::check

Copy this script into the Ignition Designer Script Console (**Tools → Script Console**) and run it. It checks that each shift is created on the right asset, that Machine 1 and Spray Line 1 inherit the site shifts while Manual Pack 1 uses only its own, and that each shift repeats on the right days at the right times (in the site's time zone). Each check prints PASS or FAIL with what to fix. It doesn't change anything.

<details>
<summary>Show the check script</summary>

::check-script{src="ops/02-scheduling/1-shifts.py" title="checkLesson-shifts.py"}

</details>

:::

The shift scheduler works like a calendar. You can:
- Create a shift name by typing a new name in the shift name dropdown
- Drag time windows onto the calendar
- Configure recurrence rules, so you don't create each shift instance by hand
- Apply shifts to higher-level assets, such as a site, so the assets below inherit them
- Override inherited shifts at lower-level assets

Because the Day and Evening shifts are created on the site, `Machine 1` and `Spray Line 1` inherit them. `Manual Pack 1` has its own shift, so it no longer inherits the site shifts — once a shift is created at any level, shifts from higher levels are not inherited at that level.
