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

Allow warmers to be have named processes #341

Merged
merged 3 commits into from Mar 24, 2024
Merged

Allow warmers to be have named processes #341

merged 3 commits into from Mar 24, 2024

Conversation

whitfin
Copy link
Owner

@whitfin whitfin commented Mar 24, 2024

This fixes #334.

This MR updates the warmer struct to support a name value, which can either be left nil and populated with the warmer pid, or an atom. As the incubator and informant services now look similar, I pulled the common logic for linking into the parent Cachex.Services. Due to warmers being either named or not, you can now use only to filter by module/name when warming the cache.

@whitfin whitfin added this to the v4.0.0 milestone Mar 24, 2024
@whitfin whitfin self-assigned this Mar 24, 2024
@whitfin whitfin merged commit e700e96 into main Mar 24, 2024
15 checks passed
@whitfin whitfin deleted the issue-334 branch March 26, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warmers should have names defined, rather than simply the module name
1 participant