Comments (5)
No need to randomize them. Just offset them so nothing that might take a long time runs at the same time.
We can't retry rewards as-is. They aren't atomic.
from stacker.news.
No need to randomize them. Just offset them so nothing that might take a long time runs at the same time.
Also good idea. I forgot that we don't have the exact same situation here. At my previous position, I had the idea to randomize since we never knew when our servers are going to get hit by a huge wave of automated abuse reports in bulk, not realizing they are actually DDOSing our servers, trying to process all these bulk abuse reports at once, lol. here, we don't have such consistent load with huge spikes of incoming requests, I guess
We can't retry rewards as-is. They aren't atomic.
Oh, right, that would be a bad idea, lol
from stacker.news.
Yeah this appears to be caused by us timing out waiting for a connection from prisma's connection pool. I'd guess the worker picked to run rewards is occasionally running other long running tasks. Both rewards and historical materialized views are both scheduled to run at exactly midnight.
from stacker.news.
So solution might be to just add retry (for now)? I think you mentioned that to me once
I used to have similar problems at my previous position and it took us really long to fix.
One solution I brought up was to randomize when the queries run so not all our REFRESH MATERIALIZED VIEW CONCURRENTLY
want to start at exactly the same time but we never did that for some reason
So maybe just do this? Randomize the query starts? Like +-1 hour?
from stacker.news.
This specific issue should be fixed in 628f755
from stacker.news.
Related Issues (20)
- Allow to set max base fee for withdrawals
- Zap responses still race to update client cache
- For exact search matches, standard analyzer should be used
- Show referees somewhere
- Don't let media/embeds appear inline in a text node
- It's still possible to disguise links as other links HOT 1
- non-custodial zap failures on bounty comments say "bounty payment failed" even if not OP HOT 1
- WSS prefix issue
- Territory subscription management UI
- New post type: Series
- Increase paid action invoice expirations when amount >= 1m sats? HOT 1
- Login with lightning -- requires doing lightning sig twice (phoenix on android) HOT 1
- External territory payment notifications HOT 1
- NIP-60 cashu wallets
- Personalized invite links HOT 1
- Add collapsable answers
- Stackers Badges HOT 1
- Withdrawals from attached wallet
- AVIF images are rendered as video
- Invite links can't pull sats from attached wallets - what do?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stacker.news.