Page MenuHomePhabricator

[services] Reactors - use doneCallback only from OnDone
ClosedPublic

Authored by karol on Mar 29 2022, 2:10 AM.
Tags
None
Referenced Files
F2193359: D3529.diff
Thu, Jul 4, 9:51 PM
Unknown Object (File)
Sun, Jun 30, 12:07 PM
Unknown Object (File)
Sun, Jun 30, 12:07 PM
Unknown Object (File)
Sun, Jun 30, 12:07 PM
Unknown Object (File)
Sun, Jun 30, 12:04 PM
Unknown Object (File)
Sun, Jun 23, 11:33 AM
Unknown Object (File)
Fri, Jun 21, 10:15 PM
Unknown Object (File)
Thu, Jun 20, 8:15 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