You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "FraterCRC (via GitHub)" <gi...@apache.org> on 2025/01/14 18:52:16 UTC
[I] memoized_func missbehavior [superset]
FraterCRC opened a new issue, #31841:
URL: https://github.com/apache/superset/issues/31841
### Bug description
It is said that it has 600 default timeout, but it gets cache timeout with default 0, so cached object will live forever.
https://github.com/apache/superset/blob/8050e351ed6947bbe0670bb76f1a13cc78aa986e/superset/utils/cache.py#L124
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] memoized_func missbehavior [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #31841: memoized_func missbehavior
URL: https://github.com/apache/superset/issues/31841
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] memoized_func missbehavior [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #31841:
URL: https://github.com/apache/superset/issues/31841#issuecomment-2590873605
<!-- Answer -->
The issue you're encountering with the `memoized_func` in Apache Superset is due to the `cache_timeout` parameter defaulting to 0 if not explicitly provided, which results in cached objects persisting indefinitely. This behavior is controlled by the line:
```python
cache_timeout = kwargs.pop("cache_timeout", 0)
```
To resolve this, you can explicitly set the `cache_timeout` to 600 seconds when calling the decorated function, or modify the code to change the default value from 0 to 600. This will ensure that the cache expires as intended after 600 seconds <sup>[[1]](https://github.com/apache/superset/blob/master/superset/utils/cache.py)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/c38a285c-17d5-4562-aea9-c2f4f13cb2f0?feedback_type=other)</sup>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] memoized_func missbehavior [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #31841:
URL: https://github.com/apache/superset/issues/31841#issuecomment-2855518644
Just approved that linked PR. Let's get it merged :D
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org