Update system
- What do Repo update flags mean?
- How to get files for creating a Unit?
- How to update a Unit?
- How does a Unit learn its current version using env.json?
- How are Unit update archives generated?
- What MQTT commands exist for updating a Unit?
- How does Pepeunit know the current version of a Unit?
- How do Units get links to compiled versions?
Process of updating all Units linked to a Repo
Manual
- Update the local RepositoryRegisty via the
Update Local Repositorybutton. - Pepeunit forcibly replaces the local repository with the new one. The maximum update frequency is limited by the
PU_MIN_INTERVAL_SYNC_REPOSITORYvariable.
Updating related Unit
- The Repo creator clicks the
Update related Unitbutton in the Repo menu. - Pepeunit calls the MQTT command UPDATE - update/pepeunit for each Unit that has automatic updates enabled.
Automatic or by Administrator request
- Every hour, or when the Administrator presses the
Update all Repo and Unitbutton, an update task is started in theDomainentity of the Frontend to update all Unit instances in accordance with the current state of physical RepositoryRegisty. - Pepeunit selects Repo objects that have automatic updates enabled.
- Pepeunit calls the MQTT command UPDATE - update/pepeunit for each Unit that has automatic updates enabled.
WARNING
To improve performance, updates of Unit and RepositoryRegisty are desynchronized by half an hour.