Page MenuHomePhabricator

[services] Reactors - use doneCallback only from OnDone
ClosedPublic

Authored by karol on Mar 29 2022, 2:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 4:35 PM
Unknown Object (File)
Fri, Dec 20, 4:35 PM
Unknown Object (File)
Fri, Dec 20, 4:34 PM
Unknown Object (File)
Fri, Dec 20, 4:31 PM
Unknown Object (File)
Sat, Dec 14, 10:45 AM
Unknown Object (File)
Nov 23 2024, 2:57 PM
Unknown Object (File)
Nov 23 2024, 2:43 PM
Unknown Object (File)
Nov 23 2024, 12:56 PM

Details

Summary

Depends on D3488
We want to use useDoneCallback only from OnDone because OnDone is executed when there are no more grpc operations to perform and we should have access to that if we'd like to release some resources, etc.

Test Plan
cd services
yarn run-backup-service

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

We have to clearly document it somewhere that doneCallback can only be called from OnDone

This revision is now accepted and ready to land.Mar 31 2022, 9:40 AM
In D3529#97892, @palys-swm wrote:

We have to clearly document it somewhere that doneCallback can only be called from OnDone

You are right. We should definitely document the base reactor classes and what exactly is going on inside of them.
https://linear.app/comm/issue/ENG-969/add-documentation-for-the-reactor-base-classes