Skip to content

Commit

Permalink
need to restart mqtt and monitor since the location of the db moved;
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jan 20, 2025
1 parent 4f87072 commit 533e2c3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
- DELETE `/api/workers/<pioreactor_unit>/calibrations/<device>/<cal_name>`
- DELETE `/unit_api/active_calibrations/<device>/<cal_name>`
- DELETE `/unit_api/calibrations/<device>/<cal_name>`
- POST `/unit_api/calibrations/<device>`
- New API for plugins
- GET `/api/units/<pioreactor_unit>/plugins/installed`
- PATCH `/api/units/<pioreactor_unit>/plugins/install`
Expand All @@ -83,7 +84,7 @@
- fixed typo `utils.local_persistant_storage` to `utils.local_persistent_storage`.
- Kalman Filter database table is no longer populated. There is a way to re-add it, lmk.
- moved intermittent cache location to `/tmp/pioreactor_cache/local_intermittent_pioreactor_metadata.sqlite`. This also determined by your configuration, see `[storage]`.
- removed `pioreactor.utils.gpio_helpers`
- removed `pioreactor.utils.gpio_helpers`
- removed `calibrations` export dataset. Use the export option on the /Calibrations page instead.
- persistent storage is now on single sqlite3 database in `/home/pioreactor/.pioreactor/storage/local_persistent_pioreactor_metadata.sqlite`. This is configurable in your configuration.
- When checking for calibrations in custom Dosing automations, users may have added:
Expand Down
6 changes: 3 additions & 3 deletions pioreactor/calibrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SingleVialODProtocol(CalibrationProtocol):
target_device = "od"
protocol_name = "single_vial"

def run(self, *args) -> structs.ODCalibration:
def run(self, *args, **kwargs) -> structs.ODCalibration:
from pioreactor.calibrations.od_calibration import run_od_calibration

return run_od_calibration()
Expand All @@ -57,15 +57,15 @@ class BatchVialODProtocol(CalibrationProtocol):
target_device = "od"
protocol_name = "batch_vial"

def run(self, *args) -> structs.ODCalibration:
def run(self, *args, **kwargs) -> structs.ODCalibration:
raise NotImplementedError("Not implemented yet")


class DurationBasedPumpProtocol(CalibrationProtocol):
target_device = ["media_pump", "alt_media_pump", "waste_pump"]
protocol_name = "duration_based"

def run(self, target_device: str) -> structs.SimplePeristalticPumpCalibration:
def run(self, target_device: str, **kwargs) -> structs.SimplePeristalticPumpCalibration:
from pioreactor.calibrations.pump_calibration import run_pump_calibration

return run_pump_calibration(target_device)
Expand Down
1 change: 1 addition & 0 deletions update_scripts/upcoming/pre_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ if [ "$HOSTNAME" = "$LEADER_HOSTNAME" ]; then

sudo -u pioreactor pios sync-configs --shared || :


fi
5 changes: 5 additions & 0 deletions update_scripts/upcoming/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,9 @@ if [ "$HOSTNAME" = "$LEADER_HOSTNAME" ]; then
# 8. add yaml mimetype
echo "application/yaml yaml yml" | sudo tee -a /etc/mime.types

# 9. restart monitor and mqtt
sudo systemctl daemon-reload
sudo systemctl restart pioreactor_startup_run@monitor
sudo systemctl restart pioreactor_startup_run@mqtt_to_db_streaming

fi

0 comments on commit 533e2c3

Please sign in to comment.