Skip to content

Commit

Permalink
some update updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Sep 16, 2024
1 parent 49a0e68 commit 88c46f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
### Upcoming

#### Highlights
- Workers now have a webserver on them. This is one of the largest architectural changes to Pioreactor, and lays the foundation for better plugin and calibration cluster management, plus future features.
- As an example, in your browser, you can enter the url: http://some_worker.local/unit_api/jobs/running to see a list of jobs running on a worker.
- Workers now have a webserver on them. This is one of the largest architectural changes to Pioreactor, and lays the foundation for better plugin, version, and calibration cluster management, plus future features.
- As an example, in your browser, you can enter the url: http://some-worker.local/unit_api/jobs/running to see a list of jobs running on a worker.
- Note: there is no interactive user interface for workers, just an API
- Previous actions that would involve SSHing from leader to a worker are replaced by web requests.
- APIs that initiate a background task either return with the result, or return a task id that be be looked up at `/api/task_status/`.

#### Bug fixes
- fixed an issue where a calibrated OD reading would be mapped to max OD signal if it was too low.
Expand All @@ -16,6 +15,7 @@
- We no longer recommend the Raspberry Pi Zero (the original Zero, not the Zero 2.) since supporting a web server + pioreactor functions is too much for a single core.
- `watchdog` is neutered. It used to try to "wake-up" a job, but this was flaky and causing more problems than it solved.
- removed python library dependency `sh`
- APIs that initiate a background task either return with the result, or return a task id that be be looked up at `/api/task_status/`.

#### Enhancements
- Better MQTT re-connection logic.
Expand Down
4 changes: 2 additions & 2 deletions pioreactor/cli/pio.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,14 @@ def update_app(
# fmt: off
commands_and_priority.extend(
[
(f"rm -rf {tmp_rls_dir}", -99),
(f"sudo rm -rf {tmp_rls_dir}", -99),
(f"unzip {source} -d {tmp_rls_dir}", 0),
(f"unzip {tmp_rls_dir}/wheels_{version_installed}.zip -d {tmp_rls_dir}/wheels", 1),
(f"sudo bash {tmp_rls_dir}/pre_update.sh", 2),
(f"sudo bash {tmp_rls_dir}/update.sh", 4),
(f"sudo bash {tmp_rls_dir}/post_update.sh", 20),
(f"mv {tmp_rls_dir}/pioreactorui_*.tar.gz {tmp_dir}/pioreactorui_archive", 98), # move ui folder to be accessed by a `pio update ui`
(f"rm -rf {tmp_rls_dir}", 99),
(f"sudo rm -rf {tmp_rls_dir}", 99),
]
)

Expand Down
1 change: 1 addition & 0 deletions update_scripts/upcoming/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ if [ "$HOSTNAME" != "$LEADER_HOSTNAME" ]; then

# install lighttp and set up mods
unzip "$SCRIPT_DIR"/lighttpd_packages.zip -d "$SCRIPT_DIR"/lighttpd_packages
sudo chown -R pioreactor:pioreactor "$SCRIPT_DIR"/lighttpd_packages # required so this can be deleted by pioreactor user if needed to run again.
dpkg -i "$SCRIPT_DIR"/lighttpd_packages/*.deb

# install our own lighttpd service
Expand Down

0 comments on commit 88c46f7

Please sign in to comment.