How to properly timeout a notification listener?
See original GitHub issueI need to load an object from MinIO as soon as it is uploaded. For that, I use the MinIO python client’s Minio.listen_bucket_notification()
and listen for the “s3:ObjectCreated:*” event. The client only listens for a single object.
It can happen that the file does not get created in time. So I want to stop listening for this notification after a while. Looking at the implementation (https://github.com/minio/minio-py/blob/master/minio/api.py#L868), I don’t see an option for a timeout, or any proper way for me to close the response and release the connection to MinIO from the outside.
What is the proper way to time out a MinIO client’s listen_bucket_notification()
iterator?
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Developers - How to properly timeout a notification listener? -
I need to load an object from MinIO as soon as it is uploaded. For that, I use the MinIO python client's Minio.listen_bucket_notification()...
Read more >Android Notification Timeout Listener - Stack Overflow
There's nothing like a timeout listener but you can use a delete intent for your purpose. You'll need a Broadcast Receiver in order...
Read more >NotificationListenerService - Android Developers
Notification was canceled due to timeout. int, REASON_UNAUTOBUNDLED. Autobundled summary notification was canceled because its group was unbundled.
Read more >How can I get notified when timeout happen? - Forum
I got a timeout errors due to network maintenance on EaaS ADS. I'd like to know how can I register a listener in...
Read more >Time-Out | Essentials | Parenting Information - CDC
What if my child is not quiet during time-out? When you first start using time-out, your child may scream or cry. This behavior...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you for the quick action @balamurugana
FYI: I also verified that using the
events
object directly, i.e. not as a context manager will leak the connection. RunningGives
Whereas the code above gives