if there’s a good way to dynamically adjust the shutdown callback sequence.
for example, say i have a dynamic list of telegram clients that get connected, i need to call disconnect on those that are active on SIGTERM / SIGINT.
i could maintain a list of clients and check if they are connected, but that’s not very scalable.
wondering if there’s a better way to do this.
currently i’m thinking of having the shutdown handler invoke a list of coroutines.
that list gets updated dynamically according to what i have active (have a data pipeline w/ many client sessions and etc.)
Totally, definitely. absolutely. nods motherfuckingly without having any clue
Обсуждают сегодня