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)
Mon, Nov 18, 9:51 PM
Unknown Object (File)
Wed, Nov 13, 11:24 AM
Unknown Object (File)
Tue, Nov 5, 6:05 PM
Unknown Object (File)
Tue, Nov 5, 6:05 PM
Unknown Object (File)
Tue, Nov 5, 6:05 PM
Unknown Object (File)
Tue, Nov 5, 6:05 PM
Unknown Object (File)
Sat, Nov 2, 6:06 PM
Unknown Object (File)
Fri, Nov 1, 6:34 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
Branch
arcpatch-D3488
Lint
No Lint Coverage
Unit
No Test Coverage

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