Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod Release 2 - 31/07/2024 #963

Merged
merged 2 commits into from
Jul 31, 2024
Merged
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
2 changes: 1 addition & 1 deletion block-streamer/src/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl BlockStream {
redis.get_last_processed_block(&config).await.unwrap();

loop {
tokio::time::sleep(std::time::Duration::from_secs(15)).await;
tokio::time::sleep(std::time::Duration::from_secs(120)).await;

let new_last_processed_block =
if let Ok(block) = redis.get_last_processed_block(&config).await {
Expand Down
8 changes: 6 additions & 2 deletions coordinator/src/handlers/block_streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl BlockStreamsHandler {
let updated_at =
SystemTime::UNIX_EPOCH + Duration::from_secs(health.updated_at_timestamp_secs);

let stale = updated_at.elapsed().unwrap_or_default() > Duration::from_secs(60);
let stale = updated_at.elapsed().unwrap_or_default() > Duration::from_secs(180);
let stalled = matches!(
health.processing_state.try_into(),
Ok(ProcessingState::Stalled)
Expand All @@ -257,7 +257,11 @@ impl BlockStreamsHandler {
if !stale && !stalled {
return Ok(());
} else {
tracing::info!(stale, stalled, "Restarting stalled block stream");
tracing::info!(
stale,
stalled,
"Restarting stalled block stream after {RESTART_TIMEOUT_SECONDS} seconds"
);
}
} else {
tracing::info!(
Expand Down
4 changes: 1 addition & 3 deletions frontend/widgets/src/QueryApi.IndexerExplorer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ const fetchIndexerData = () => {
const sanitizedAccountID = author_account_id.replace(/\./g, '_');
const key = `${sanitizedAccountID}/${indexer_name}`;
return ({
...(indexerMetaData.has(key) && indexerMetaData.get(key)),
accountId: author_account_id,
indexerName: indexer_name,
...(indexerMetaData.has(key) && indexerMetaData.get(key))
})
});
// sort by numQueries
Expand Down Expand Up @@ -158,8 +158,6 @@ const fetchIndexerMetadata = () => {
original_deployment_date
}) => {
const indexer = {
accountId: indexer_account_id,
indexerName: indexer_name,
lastDeploymentDate: last_deployment_date,
numDeployements: num_deployements,
numQueries: num_queries,
Expand Down
Loading