🥥Matthew Martin🥥☑ on Nostr: Also, because there isn't a good event to hook into for the start of a python app, ...
Also, because there isn't a good event to hook into for the start of a python app, the start/stop events are decorators and/or context managers.
Also, atexit is braindamaged and only runs once per root process. I'm thinking of pulling in multiexit so that it works with multiple exists (say when using a process pool)
Published at
2024-09-10 13:44:32Event JSON
{
"id": "afff5355428ee763c535794b54088418223117f9099e7241cb3b032bb6ebd6a1",
"pubkey": "6c79e5c5386ee1cbe5b80303c40f8d781831ef78b63ce76c726c3c0b47f622de",
"created_at": 1725975872,
"kind": 1,
"tags": [
[
"p",
"6c79e5c5386ee1cbe5b80303c40f8d781831ef78b63ce76c726c3c0b47f622de"
],
[
"e",
"77af82e8dbbc47c857b6b016dadf54b2797b38f317c24a88abcdfc24d913eb87",
"",
"root",
"6c79e5c5386ee1cbe5b80303c40f8d781831ef78b63ce76c726c3c0b47f622de"
],
[
"proxy",
"https://mastodon.social/@mistersql/113113554776764755",
"web"
],
[
"proxy",
"https://mastodon.social/users/mistersql/statuses/113113554776764755",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/mistersql/statuses/113113554776764755",
"pink.momostr"
],
[
"-"
]
],
"content": "Also, because there isn't a good event to hook into for the start of a python app, the start/stop events are decorators and/or context managers.\n\nAlso, atexit is braindamaged and only runs once per root process. I'm thinking of pulling in multiexit so that it works with multiple exists (say when using a process pool)",
"sig": "2b5d191fb2cc9ff111c1c90bdbbfaf0a5be7950625751dfdd7501367a538770966ba46bb2152075428536a345fb9540153bec36ed5afa41bb46d659627973502"
}