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

[Merged by Bors] - configure poet /v1/info cache ttl in presets #6198

Closed
wants to merge 1 commit into from

Conversation

poszu
Copy link
Contributor

@poszu poszu commented Aug 1, 2024

Motivation

For the cache to work, it needs to have non-zero TTL set

Description

Test Plan

n/a

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

@poszu poszu force-pushed the fix/configure-certifier-info-cache-ttl branch from 32a06d7 to a666b3d Compare August 1, 2024 09:52
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.9%. Comparing base (13dfb49) to head (a666b3d).

Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #6198     +/-   ##
=========================================
- Coverage     81.9%   81.9%   -0.1%     
=========================================
  Files          301     301             
  Lines        32406   32410      +4     
=========================================
- Hits         26548   26544      -4     
- Misses        4135    4141      +6     
- Partials      1723    1725      +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@poszu
Copy link
Contributor Author

poszu commented Aug 1, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Aug 1, 2024
## Motivation

For the cache to work, it needs to have non-zero TTL set
@spacemesh-bors
Copy link

spacemesh-bors bot commented Aug 1, 2024

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title configure poet /v1/info cache ttl in presets [Merged by Bors] - configure poet /v1/info cache ttl in presets Aug 1, 2024
@spacemesh-bors spacemesh-bors bot closed this Aug 1, 2024
@spacemesh-bors spacemesh-bors bot deleted the fix/configure-certifier-info-cache-ttl branch August 1, 2024 11:41
poszu added a commit that referenced this pull request Aug 1, 2024
## Motivation

For the cache to work, it needs to have non-zero TTL set
fasmat pushed a commit that referenced this pull request Aug 1, 2024
* configure poet /v1/info cache ttl in presets (#6198)

## Motivation

For the cache to work, it needs to have non-zero TTL set

* cache poet's /v1/pow_params with TTL (#6199)

## Motivation

Similarly to /v1/info, we query /v1/pow_params very often (once per submit per node ID). As the contents returned from this endpoint change rarely (once per epoch), it makes sense to cache the result.

* update changelog
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