.seek () did not work very well in python, using the provided Timestamp () instantiated from the timestamp class. In my tests, the posting time of the post clearly showed the time before I use .seek (); But the messages until the time I'm looking for do not confirm everything (which will deplete the message in the subscription). In any case, many messages have returned from the dead!
The best way I can find now is to run a cleanup function using synchronous extraction (subscriber.pull), with some sane max_messages and timeout; or with asynchronous voltage, but give it a longer wait time (for example, 6-8 + seconds); unfortunately, if you do not disable synchronous extraction, it will simply hang and wait if it fails at least one message; and for asynchronous it will just wait forever if you don't time out.
I would like to try a search on a snapshot, but did not have the necessary permissions (also to delete / recreate a subscription)
the pillow
source share