Skip to content

Allow custom callback store#8

Merged
pencil merged 11 commits intomainfrom
callback-store
Jun 23, 2025
Merged

Allow custom callback store#8
pencil merged 11 commits intomainfrom
callback-store

Conversation

@pencil
Copy link
Collaborator

@pencil pencil commented Jun 17, 2025

To completely eliminate the issue of large workflows being stored in your message queue, you can now provide a custom callback storage backend to the WorkflowMiddleware. A callback storage backend is responsible for storing and retrieving the list of callbacks. For example, you could implement a storage backend that stores the callbacks in S3 and only stores a reference to the S3 object in the message options.

Copy link
Collaborator

@dan-woz dan-woz left a comment

Choose a reason for hiding this comment

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

Looks good! Might be possible to tighten up the ref typing a bit, but I assume it's basically not worth the effort.

@pencil pencil merged commit ce1ec31 into main Jun 23, 2025
9 checks passed
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.

2 participants