Skip to content
Merged
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
7 changes: 5 additions & 2 deletions sdks/python/apache_beam/transforms/periodicsequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ def process(
# we are too ahead of time, let's wait.
restriction_tracker.defer_remainder(
timestamp.Timestamp(current_output_timestamp))
return
break

if not restriction_tracker.try_claim(current_output_index):
# nothing to claim, just stop
return
break

output = self._get_output(current_output_index, current_output_timestamp)

Expand All @@ -186,6 +186,9 @@ def process(

current_output_index += 1

# Don't yield any values here so that the generator
# raises StopIteration when we break out of the while loop.


class PeriodicSequence(PTransform):
'''
Expand Down
Loading