Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions engine/packages/pegboard-gateway/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod tunnel_to_ws_task;
mod ws_to_tunnel_task;

const WEBSOCKET_OPEN_TIMEOUT: Duration = Duration::from_secs(15);
const TUNNEL_ACK_TIMEOUT: Duration = Duration::from_secs(5);
const RESPONSE_START_TIMEOUT: Duration = Duration::from_secs(15);
const UPDATE_PING_INTERVAL: Duration = Duration::from_secs(3);

#[derive(RivetError, Serialize, Deserialize)]
Expand Down Expand Up @@ -231,10 +231,10 @@ impl CustomServeTrait for PegboardGateway {

Err(ServiceUnavailable.build())
};
let response_start = tokio::time::timeout(WEBSOCKET_OPEN_TIMEOUT, fut)
let response_start = tokio::time::timeout(RESPONSE_START_TIMEOUT, fut)
.await
.map_err(|_| {
tracing::warn!("timed out waiting for tunnel ack");
tracing::warn!("timed out waiting for response start from runner");

ServiceUnavailable.build()
})??;
Expand Down Expand Up @@ -373,10 +373,10 @@ impl CustomServeTrait for PegboardGateway {
Err(WebSocketServiceUnavailable.build())
};

let open_msg = tokio::time::timeout(TUNNEL_ACK_TIMEOUT, fut)
let open_msg = tokio::time::timeout(WEBSOCKET_OPEN_TIMEOUT, fut)
.await
.map_err(|_| {
tracing::warn!("timed out waiting for tunnel ack");
tracing::warn!("timed out waiting for websocket open from runner");

WebSocketServiceUnavailable.build()
})??;
Expand Down
1 change: 1 addition & 0 deletions engine/packages/pegboard-gateway/src/shared_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pub struct SharedState(Arc<SharedStateInner>);
impl SharedState {
pub fn new(config: &rivet_config::Config, ups: PubSub) -> Self {
let gateway_id = protocol::util::generate_gateway_id();
tracing::info!(gateway_id = %protocol::util::id_to_string(&gateway_id), "setting up shared state for gateway");
let receiver_subject =
pegboard::pubsub_subjects::GatewayReceiverSubject::new(gateway_id).to_string();

Expand Down
3 changes: 3 additions & 0 deletions engine/sdks/rust/runner-protocol/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions engine/sdks/rust/runner-protocol/src/lib.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

209 changes: 209 additions & 0 deletions engine/sdks/rust/runner-protocol/src/uuid_compat.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 43 additions & 30 deletions engine/sdks/rust/runner-protocol/src/versioned.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading