Comments (11)
I'm sure. We just launched this in to production yesterday, so we're just now seeing it. I'm gonna do more digging in, but you know how it goes with the lack of debugging tools in crystal 😅 I'll let you know if I come up with any additional info.
from mosquito.
I did indeed, and I did a horrible job with that 😢 sorry about that. I tried a few different things, but I was never able to recreate it outside of the app. My guess is we must have been doing something weird.
You can close this out for now if you'd like, and if I end up getting a better code example, I can always just reopen it.
from mosquito.
@jwoertink In the example you gave, are you saying that it only runs the PasswordWorker, but not EmailWorker, LoginWorker, etc?
from mosquito.
In that example, I'm saying that it may run all 4, or it may run just the LoginWorker, or it may run only the PasswordWorker and the PostbackWorker.... Like every permutation of those. It doesn't really make sense, but my guess is all of them get shoved in to redis, but only some get pulled back out.
from mosquito.
@jwoertink wow, that's significant. Thanks for reporting. I have a feeling it's going to be difficult to reproduce.
from mosquito.
@jwoertink can you go into more detail about your deployment? I'm curious how many task runners you have, for example.
from mosquito.
oh, I didn't even think about that.
require "./shards"
require "./workers/*"
Mosquito::Runner.start
I'm just running
crystal build src/mosquito.cr --release -o worker
./worker
So I never actually specified the number of workers or anything. What does that config look like?
from mosquito.
By default it's just the one worker. I meant spinning up ./worker
more than once, possibly on multiple boxes.
from mosquito.
We only have the one server, so only 1 process for that running.
from mosquito.
@jwoertink you mentioned you might do some digging, did anything get dug up?
from mosquito.
No worries! Thanks for checking back in. Please re-open if needed.
from mosquito.
Related Issues (20)
- Leaky Bucket Queue?
- Array support for params (or better error message...) HOT 5
- mosquito is completely broken after 1.0.1 HOT 5
- Graceful shutdown when receiving the TERM signal HOT 7
- High CPU usage HOT 9
- Make executor count configurable HOT 1
- Ability to specify a redis connection pool from an application, instead of making mosquito handle it all
- Add a before/after enqueue set of hooks
- Add hook for job-interrupted, and improve scheduling logic to requeue a job if it needs to be terminated
- unknown command `lmove` HOT 6
- Add ability to configure global Redis namespace prefix HOT 1
- Job crashing with Missing hash key: "limit" (KeyError) HOT 11
- Address developer experience around Job#job_type
- Memoize an exception thrown by a job so it can be analyzed in an after-hook?
- Provide API for inspecting the backend data
- Provide a way to detect and clean up jobs which were started but never finished HOT 1
- Redis RPOPLPUSH command is deprecated since Redis 6.2
- Provide an easy way to cancel a job without it being rescheduled
- Support error handlers HOT 3
- Update runner to use time::span instead of bare seconds, and monotonic for the idle wait
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 mosquito.