Skip to content

Commit

Permalink
send payloads containing processed_frames
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz-roboflow committed Jul 18, 2024
1 parent ea37a2b commit d022f8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inference/usage_tracking/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,9 @@ def _offload_to_api(self, payloads: List[APIKeyUsage]):
api_keys_failed = set()
for payload in payloads:
for api_key, workflow_payloads in payload.items():
if any("processed_frames" not in w for w in workflow_payloads.values()):
api_keys_failed.add(api_key)
continue
enterprise = any(
w.get("enterprise") for w in workflow_payloads.values()
)
Expand Down

0 comments on commit d022f8a

Please sign in to comment.