avkhozov / minion-backend-mongodb Goto Github PK
View Code? Open in Web Editor NEWMongoDB backend for Minion
Home Page: https://metacpan.org/release/Minion-Backend-MongoDB
MongoDB backend for Minion
Home Page: https://metacpan.org/release/Minion-Backend-MongoDB
If you enqueue at the same time a bunch of complex jobs (simulate with sleep 1) driver disconnects:
MongoDB::NetworkTimeout: Timed out while waiting for socket to become ready for reading
Output from mongod log:
{"t":{"$date":"2022-07-22T17:26:06.526+03:00"},"s":"W", "c":"QUERY", "id":20478, "ctx":"conn5098","msg":"getMore command executor error","attr":{"error":{"code":237,"codeName":"CursorKilled","errmsg":"operation was interrupted"},"stats":{"stage":"COLLSCAN","filter":{"$and":[{"queue":{"$eq":"default"}},{"_id":{"$gte":{"$oid":"62dab366b47f6cb578a01208"}}}]},"nReturned":0,"works":134,"advanced":0,"needTime":131,"needYield":0,"saveState":3,"restoreState":2,"isEOF":0,"direction":"forward","docsExamined":128},"cmd":{"getMore":9116968115045765046,"collection":"minion.notifications","maxTimeMS":5000}}}
We have hotfixed it as a temporary solution by removing tailable_await and max_await_time_ms in in _await function
$job->note must be used only to set notes. To get notes you must use $job->info->{notes}. But if you call $job->note without arguments, the job record will be destroyed in something like this
{
"_id" : ObjectId("xxxxxxxxxxxxxxxxxxxxx"),
"upsert" : 0,
"returnDocument" : "after"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.