Skip to content

Commit

Permalink
call execute on supabase rpc (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
arikalon1 authored May 27, 2024
1 parent 498d5f6 commit 7bde2c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/robusta/core/sinks/robusta/dal/supabase_dal.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def insert_scan_meta(self, scan_id: str, start_time: datetime, scan_type: ScanTy
"_scan_start": str(start_time),
"_type": scan_type,
},
)
).execute()
except requests.exceptions.HTTPError as e:
logging.exception(f"Failed to insert scan meta {scan_id}, error: {e}, response: {e.response.text}")
raise
Expand Down Expand Up @@ -543,7 +543,7 @@ def publish_cluster_nodes(self, node_count: int, pod_count: int):
"_pod_count": pod_count,
}
try:
self.client.rpc(UPDATE_CLUSTER_NODE_COUNT, data)
self.client.rpc(UPDATE_CLUSTER_NODE_COUNT, data).execute()
except Exception as e:
logging.error(f"Failed to publish node count {data} error: {e}")

Expand Down

0 comments on commit 7bde2c6

Please sign in to comment.