Skip to content

Commit e46c163

Browse files
committed
chore: add clarifying comment for on_event envelope check
1 parent 26420bf commit e46c163

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/bigframes/bigframes/session/metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def on_event(self, envelope: Any):
243243
except ImportError:
244244
return
245245

246+
# Direct publisher.publish calls pass raw Event objects, while background query callbacks wrap events in an EventEnvelope to preserve progress bar context.
246247
if isinstance(envelope, bigframes.core.events.EventEnvelope):
247248
event = envelope.event
248249
else:

0 commit comments

Comments
 (0)