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

automerge #7

Closed
wants to merge 7 commits into from
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
21 changes: 19 additions & 2 deletions hasura-api/metadata-json/unified.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"resource_version": 313,
"resource_version": 316,
"metadata": {
"version": 3,
"sources": [
Expand Down Expand Up @@ -295,6 +295,23 @@
"name": "account_transactions",
"schema": "public"
},
"object_relationships": [
{
"name": "user_transaction",
"using": {
"manual_configuration": {
"column_mapping": {
"transaction_version": "version"
},
"insertion_order": null,
"remote_table": {
"name": "user_transactions",
"schema": "public"
}
}
}
}
],
"array_relationships": [
{
"name": "coin_activities",
Expand Down Expand Up @@ -2485,7 +2502,7 @@
"GET"
],
"name": "Latest Processor Status",
"url": "get_lastest_processor_status"
"url": "get_latest_processor_status"
}
],
"api_limits": {
Expand Down
22 changes: 20 additions & 2 deletions python/utils/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,24 @@ def producer(
extra={
"processor_name": processor_name,
"stream_address": indexer_grpc_data_service_address,
"error": str(e),
"next_version_to_fetch": next_version_to_fetch,
"ending_version": ending_version,
},
)
# Datastream error can happen when we fail to deserialize deeply nested types.
# Skip the batch, log the error, and continue processing.
is_success = True
next_version_to_fetch += 1
response_stream = get_grpc_stream(
indexer_grpc_data_service_address,
indexer_grpc_data_stream_api_key,
indexer_grpc_http2_ping_interval,
indexer_grpc_http2_ping_timeout,
next_version_to_fetch,
ending_version,
processor_name,
)

# Check if we're at the end of the stream
reached_ending_version = (
Expand Down Expand Up @@ -369,7 +385,8 @@ async def consumer_impl(
"service_type": PROCESSOR_SERVICE_TYPE,
},
)
os._exit(1)
# Gaps are possible because we skipped versions
# os._exit(1)
last_fetched_version = transactions[-1].version
transaction_batches.append(transactions)

Expand Down Expand Up @@ -415,7 +432,8 @@ async def consumer_impl(
"service_type": PROCESSOR_SERVICE_TYPE,
},
)
os._exit(1)
# Gaps are possible because we skip versions
# os._exit(1)
prev_start = result.start_version
prev_end = result.end_version

Expand Down
Loading
Loading