Skip to content

Commit

Permalink
Merge branch 'vilayat/task/graceful-shutdown' of https://github.com/b…
Browse files Browse the repository at this point in the history
…ytebeamio/uplink into vilayat/task/re-read-packets
  • Loading branch information
Vilayat-Ali committed Nov 1, 2023
2 parents 1dda22a + 0b6f214 commit cb9e756
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 100 deletions.
3 changes: 0 additions & 3 deletions config.toml

This file was deleted.

70 changes: 0 additions & 70 deletions notes.md

This file was deleted.

6 changes: 3 additions & 3 deletions qa-scripts/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CONSOLED_DOMAIN=stage.bytebeam.io
BYTEBEAM_API_KEY=b027b7ab-b294-4ff7-a197-d47e38e55bd1
DEVICE_ID=1001
CONSOLED_DOMAIN=
BYTEBEAM_API_KEY=
DEVICE_ID=
2 changes: 1 addition & 1 deletion qa-scripts/actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ port = 7891
actions = [{ name = "no_response", timeout = 100 }, { name = "restart_response", timeout = 1800 }]
EOF
)" > devices/actions.toml
# docker cp devices/actions.toml simulator:/usr/share/bytebeam/uplink/devices/actions.toml
docker cp devices/actions.toml simulator:/usr/share/bytebeam/uplink/devices/actions.toml

docker exec -it simulator uplink -a /usr/share/bytebeam/uplink/devices/device_$DEVICE_ID.json -c /usr/share/bytebeam/uplink/devices/actions.toml -vv -m uplink::base::bridge

Expand Down
Empty file removed questions.md
Empty file.
11 changes: 0 additions & 11 deletions ssl.json

This file was deleted.

10 changes: 0 additions & 10 deletions uplink/src/base/bridge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,4 @@ impl BridgeTx {
}
});
}

/*
TODO:
Description: Shutdown MQTT connection with broker when getting signals for exit/quit
Create a directory inside the persistence directory
- save inflight data packets
*/
}
2 changes: 0 additions & 2 deletions uplink/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ fn main() -> Result<(), Error> {
while let Some(signal) = signals.next().await {
match signal {
SIGTERM | SIGINT | SIGQUIT => bridge_tx.trigger_shutdown().await,
// how to insert graceful shutdown code?
// it is partially there... need to add from here
s => error!("Couldn't handle signal: {s}"),
}
}
Expand Down

0 comments on commit cb9e756

Please sign in to comment.