Skip to content

Conversation

jkline-trustle
Copy link

There may be a better way to describe this.

In python only the step output is pickled, the input is not.
Address the edge case of a `step` called outside a `workflow`.
Copy link
Contributor

@maxdml maxdml left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@jkline-trustle
Copy link
Author

Another case seems to be "steps used in queues run asynchronously and somewhere else, so the input must be pickled."

@kraftp
Copy link
Member

kraftp commented Feb 18, 2025

Yes, steps called asynchronously via start_workflow or queues have the same issue. I'm hesitant to merge this particular change. The fact that the inputs of steps called synchronously aren't serialized is really an implementation detail, and I'm not sure if we want to expose it in our docs. I'd rather work on a more robust solution for the problems we currently work around by passing unserializable objects to steps. I'm working on some improvements to DBOS classes and configured classes that should help with this.

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.

3 participants