-
Notifications
You must be signed in to change notification settings - Fork 158
Simplify code and error handling between ActivityWorker and LocalActivityWorker #1263
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Simplify code and error handling between ActivityWorker and LocalActivityWorker #1263
Conversation
9a896ee
to
815c464
Compare
815c464
to
e5582db
Compare
// TODO should go away with SimulatedTimeoutFailure | ||
if (exception instanceof TimeoutFailure) { | ||
exception = new SimulatedTimeoutFailure((TimeoutFailure) exception); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Todo refers to thing that it implies doesn't exist, but seems to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will go away in the next PR, didn't want to throw everything into one.
// For small backoff we do local retry. Otherwise we will schedule timer on server side. | ||
// TODO(maxim): Use timer queue for retries to avoid tying up a thread. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you find where this implementation actually is, if anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was actually in the code base but was removed during fat finger refactoring more than 2 years ago. #1261
Will need to bring it back in a backward-compatible manner.
3483b7c
to
f026ba1
Compare
To save me a bit of time, can you clarify which parts are code moves and which parts are new code I should focus on? |
@cretz It's all code restructuring, deduplication by introducing parent classes, unification of implementation between workers, and ensuring that callback is always called for LAs. There is pretty much no new code. |
f026ba1
to
f28cbc6
Compare
…vityWorker Make LocalActivityWorker more robust to unexpected errors Issue temporalio#1262
f28cbc6
to
0fd824f
Compare
Simplify code and error handling between ActivityWorker and LocalActivityWorker
Make LocalActivityWorker more robust to unexpected errors
Partially addresses #1262