Skip to content

feat: support disabling pooling for a persona#105

Closed
btrautmann wants to merge 3 commits into
Betterment:mainfrom
btrautmann:bt/feat/disable-pooling
Closed

feat: support disabling pooling for a persona#105
btrautmann wants to merge 3 commits into
Betterment:mainfrom
btrautmann:bt/feat/disable-pooling

Conversation

@btrautmann

Copy link
Copy Markdown
Contributor

This PR allows for disabling pooling behavior for a given persona.

This is useful in some cases where a persona has behavior/attributes that are time-sensitive, i.e. an expiring invite or similar that, if pooled, would expire prior to being claimed.

By setting allow_in_pool { false }, you disable pooling and a new persona will always be generated when requested. The persona will never be hydrated.

Comment thread lib/demo_mode/persona.rb

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Idea: what if we add an after_claim callback config, so that anything time-sensitive can be created or updated at the time when the persona is claimed for use?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh that's a super neat idea, lemme look into that

@btrautmann

Copy link
Copy Markdown
Contributor Author

Closing in favor of #106.

@btrautmann btrautmann closed this Apr 27, 2026
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