Message357307
> 1. A CancelledError (or maybe`QueueCancelled`?) exception is raised in all producers and consumers ) - this gives a producer a chance to handle the error and do something with the waiting item that could not be `put()`
> 2. Items currently on the queue still get processed in the consumers before the consumers exit.
This (especially 2) sounds quite tricky.
Maybe we should just add a method to Queue to get the list of current consumers, of pending consumers, and pending producers? This way users can implement whatever semantics they want (probably :wink:). |
|
Date |
User |
Action |
Args |
2019-11-22 17:54:20 | yselivanov | set | recipients:
+ yselivanov, asvetlov, cjrh, Martin.Teichmann |
2019-11-22 17:54:20 | yselivanov | set | messageid: <1574445260.76.0.101030432873.issue37334@roundup.psfhosted.org> |
2019-11-22 17:54:20 | yselivanov | link | issue37334 messages |
2019-11-22 17:54:20 | yselivanov | create | |
|