Skip to content

Conversation

@v0idpwn
Copy link
Member

@v0idpwn v0idpwn commented Oct 24, 2025

No description provided.

@v0idpwn v0idpwn requested a review from a team as a code owner October 24, 2025 17:31
def update_tenant_with_restart(%Tenant{} = tenant, attrs) do
changeset = Tenant.changeset(tenant, attrs)

# TODO: Consider checking if specific changed fields require restart.

Check warning

Code scanning / Credo

Found a TODO tag in a comment: # TODO: Consider checking if specific changed fields require restart. Warning

Found a TODO tag in a comment: # TODO: Consider checking if specific changed fields require restart.
|> case do
{:ok, tenant} ->
# Clear cache after creating tenant to ensure cached "not found" results are invalidated
cleanup_result = Supavisor.del_all_cache_dist(tenant.external_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe this is a good time to make del_all_cache_dist non gradual

{:ok, tenant}
else
# Clear cache before update
cleanup_result = Supavisor.del_all_cache_dist(tenant.external_id)
Copy link
Contributor

@abc3 abc3 Oct 26, 2025

Choose a reason for hiding this comment

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

why clear cache before update?

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