pyronear / pyronear/pyro-engine
conflict between watchdog and update deployment
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 19
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Example of a problem encountered when deploying an update
-
Poor network connection resulting in a significant delay when pulling the Docker image, leading to a Failure
-
Cause (upon checking the workstation) -> the relay switch was activated by the Pi Zero -> probably because the service was down for too long
What approach should be considered to address this issue? What robust strategy should be adopted (we want to delay the Pi Zero but ensure it reboots at some point, as it acts as a backup for the Pi!) ?
Either the Pi Zero should check the Pi’s status by means other than querying Docker (which is currently already a limitation as it only monitors Docker)
or, during the deployment process, should we set the failure counter to a higher level to allow sufficient time for the update to be deployed?
Happy to discuss it !
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the watchdog's Docker-based Pi status check, the update deployment path, and the failure counter behavior described in the issue. Compare the timing of a delayed Docker image pull with the Pi Zero relay activation, then define a strategy that delays the backup response while still guaranteeing a reboot; the issue does not name files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python, raspberry-pi
- Domain
- devops, embedded-iot, infrastructure
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100