Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type parameter for expectWorker accepting Worker instance. #969

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

zach-klippenstein
Copy link
Collaborator

The worker type should be unbounded, not the same as the Workflow's output type.

@zach-klippenstein zach-klippenstein added bug Something isn't working testing labels Feb 15, 2020
@zach-klippenstein zach-klippenstein added this to the kotlin v0.23.3 milestone Feb 15, 2020
@zach-klippenstein zach-klippenstein force-pushed the zachklipp/fix-expectworker-type branch from e041de0 to 3455e30 Compare February 15, 2020 22:46
The worker type should be unbounded, _not_ the same as the _Workflow's_ output type.
@zach-klippenstein zach-klippenstein force-pushed the zachklipp/fix-expectworker-type branch from 3455e30 to 624e3b6 Compare February 18, 2020 17:36
@zach-klippenstein
Copy link
Collaborator Author

Fixed the EmittedOutput type.

@tehras tehras self-requested a review February 18, 2020 19:35
Copy link
Collaborator

@tehras tehras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I clicked wrong buttons so re-approving

key: String = "",
output: EmittedOutput<OutputT>? = null
output: EmittedOutput<Any?>? = null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this required?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how you "fake" an output from this worker. This type is the type of the output from the worker.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh duhhh.

@zach-klippenstein zach-klippenstein merged commit 81fe64c into release-v0.23.x Feb 18, 2020
@zach-klippenstein zach-klippenstein deleted the zachklipp/fix-expectworker-type branch February 18, 2020 20:26
@zach-klippenstein zach-klippenstein added the kotlin Affects the Kotlin library. label Feb 28, 2020
@zach-klippenstein zach-klippenstein modified the milestones: v0.23.3, v0.24.0 Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working kotlin Affects the Kotlin library. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants