Andrew on Nostr: we have a bit of code that runs background jobs which are allowed to fail sometimes, ...
we have a bit of code that runs background jobs which are allowed to fail sometimes, which we call fireAndForget. in the test environment, it keeps a list of all the jobs its tried to do so we can assert later that they did in fact succeed
the function that checks up on them is called listenForForgottenPromises and it's just occured to me now how poetic that name is
Published at
2024-09-02 13:44:46Event JSON
{
"id": "d8f3084f7f02ee14961006d131d83c6041135cc018c28a494c6137b601dea46a",
"pubkey": "00dbdbbfbe02172d1e4426f29292f24e8a78e29ba9187097bc26d254ba1f7bbd",
"created_at": 1725284686,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/users/andrewt/statuses/113068257181584261",
"activitypub"
]
],
"content": "we have a bit of code that runs background jobs which are allowed to fail sometimes, which we call fireAndForget. in the test environment, it keeps a list of all the jobs its tried to do so we can assert later that they did in fact succeed\n\nthe function that checks up on them is called listenForForgottenPromises and it's just occured to me now how poetic that name is",
"sig": "c5781f0ee766853b2ecc6c2751cf4ec9760870d5cf6f6c3a7e9db62b0e09b1ce4c39ce7b3bb80287d29de79b2baf68e335860a12b361f5cf93074fc6f648c13a"
}