This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author achimnol
Recipients achimnol, asvetlov, gvanrossum, yselivanov
Date 2022-02-25.05:04:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645765499.3.0.500657684064.issue46843@roundup.psfhosted.org>
In-reply-to
Content
Here is one another story.

When handling message queues in distributed applications, I use the following pattern frequently for graceful shutdown:
* Use a sentinel object to signal the end of queue.
* Enqueue the sentinel object when:
  - The server is shutting down. (i.e., cancelled explicitly)
  - The connection peer has sent an explicit termination message. (e.g., EOF)
* Wait until all enqueued messages before the sentinal object to be processed.
  - I'd like to impose a shutdown timeout on here using a persistent task group, by spawning all handler tasks of this queue into it.
History
Date User Action Args
2022-02-25 05:04:59achimnolsetrecipients: + achimnol, gvanrossum, asvetlov, yselivanov
2022-02-25 05:04:59achimnolsetmessageid: <1645765499.3.0.500657684064.issue46843@roundup.psfhosted.org>
2022-02-25 05:04:59achimnollinkissue46843 messages
2022-02-25 05:04:59achimnolcreate