Skip to content

Conversation

@zach-klippenstein
Copy link
Collaborator

This fixes #79 and unblocks the ability to implement GUWT Workers as Workflows.
WorkflowIdentifier can now indicate that it is not serializable by returning
null from toByteString(), in which case neither it nor the snapshot of the
workflow it identifies will be serialized. Because these identifiers do not need
to be serialized, they can contain arbitrary values such as KTypes, which is
how Workers distinguish themselves for example. Workers also do not need to
be snapshotted, so this works out.

@zach-klippenstein zach-klippenstein added this to the v1.0.0 milestone Jun 29, 2020
@zach-klippenstein zach-klippenstein requested a review from a team as a code owner June 29, 2020 20:52
@zach-klippenstein zach-klippenstein force-pushed the zachklipp/transient-workflowidentifiers branch 2 times, most recently from 10fc53c to 13f9a68 Compare June 29, 2020 21:09
* Returns a description of this identifier including the name of its workflow type and any
* [proxiedIdentifier]s. Computes [typeString] if it has not already been computed.
* If this identifier is snapshottable, returns the serialized form of the identifier.
* If it is not snapshottable, returns null.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't strike me as hacky at all.

…tifiers.

This fixes #79 and unblocks the ability to implement GUWT Workers as Workflows.
`WorkflowIdentifier` can now indicate that it is not serializable by returning
null from `toByteString()`, in which case neither it nor the snapshot of the
workflow it identifies will be serialized. Because these identifiers do not need
to be serialized, they can contain arbitrary values such as `KType`s, which is
how Workers distinguish themselves for example. Workers also do not need to
be snapshotted, so this works out.
@zach-klippenstein zach-klippenstein force-pushed the zachklipp/transient-workflowidentifiers branch from 13f9a68 to 1a1eced Compare June 29, 2020 22:50
@zach-klippenstein zach-klippenstein merged commit e931852 into main Jun 29, 2020
@zach-klippenstein zach-klippenstein deleted the zachklipp/transient-workflowidentifiers branch June 29, 2020 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Figure out how to support GUWT worker identity with ImpostorWorkflow

3 participants